diff --git a/include/pybind11/stl.h b/include/pybind11/stl.h index 63e7fdc43..cee5be72d 100644 --- a/include/pybind11/stl.h +++ b/include/pybind11/stl.h @@ -110,7 +110,7 @@ public: while (PyDict_Next(src, &pos, &key_, &value_)) { if (!kconv.load(key_, convert) || !vconv.load(value_, convert)) return false; - value[kconv] = vconv; + value[(Key) kconv] = (Value) vconv; } return true; }