Update stl.h

supporting std::map<key_t, std::shared_ptr<T> >
This commit is contained in:
Xuepeng Fan 2015-12-21 13:07:51 +08:00
parent 4b279327a3
commit 2a0f6cad8e

View File

@ -110,7 +110,8 @@ public:
while (PyDict_Next(src, &pos, &key_, &value_)) {
if (!kconv.load(key_, convert) || !vconv.load(value_, convert))
return false;
value[kconv] = vconv;
Value & _v = vconv;
value[kconv] = _v;
}
return true;
}