From 9d573f44b954c5ce6ad808ba0edce627a5e58f89 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sat, 26 Dec 2015 13:37:59 +0100 Subject: [PATCH] stl.h fix for std::map (see PR #43) --- include/pybind11/stl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }