mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
stl.h fix for std::map (see PR #43)
This commit is contained in:
parent
1546b85797
commit
9d573f44b9
@ -110,7 +110,7 @@ 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[(Key) kconv] = (Value) vconv;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user