Hi Skip, On 17.06.2016 09:37, Skip Montanaro wrote: > I'm trying to debug an assertion error from Boost.Python, but having > no luck. I'm not a C++ programmer, but to my eyes, it seems like my > call should work. I'm using Boost 1.47.0 on an openSuSE 12.2 platform, > with GCC/G++ 4.4. These parameters are fixed (that is, suggestions > that I update any of them aren't going to fly - I am tied to those > versions by factors outside my control). Here's a simple example, > which used to work:
you haven't shown any code, so I can only guess, but from the error messages I'd suspect you assume Boost.Python to automatically map between the Python dict type and your library's std::map<std::string, resource::variant>. There is no automatic mapping of std::map<...>. The closest is the "map_indexing_suite" (http://boostorg.github.io/python/doc/html/reference/topics/indexing_support.html#topics.indexing_support.class_map_indexing_suite), but even with that you do need to explicitly specify the types to map. HTH, Stefan -- ...ich hab' noch einen Koffer in Berlin... _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org https://mail.python.org/mailman/listinfo/cplusplus-sig