mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
Update stl.h
supporting std::map<key_t, std::shared_ptr<T> >
This commit is contained in:
parent
4b279327a3
commit
2a0f6cad8e
@ -110,7 +110,8 @@ public:
|
|||||||
while (PyDict_Next(src, &pos, &key_, &value_)) {
|
while (PyDict_Next(src, &pos, &key_, &value_)) {
|
||||||
if (!kconv.load(key_, convert) || !vconv.load(value_, convert))
|
if (!kconv.load(key_, convert) || !vconv.load(value_, convert))
|
||||||
return false;
|
return false;
|
||||||
value[kconv] = vconv;
|
Value & _v = vconv;
|
||||||
|
value[kconv] = _v;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user