Using Boost Python & std::shared_ptr
问题 I'm trying to get Boost Python to play nicely with std::shared_ptr. Currently, I'm receiving this error: Traceback (most recent call last): File "test.py", line 13, in <module> comp.place_annotation(circle.centre()) TypeError: No to_python (by-value) converter found for C++ type: std::shared_ptr<cgl::Anchor> From calling circle.centre(), which returns an std::shared_ptr. I could change every std::shared_ptr to a boost::shared_ptr (which Boost Python plays nicely with) however the amount of