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\",
Unless I've misunderstood, I think this solves your problem:
boost::python::register_ptr_to_python>();
http://www.boost.org/doc/libs/1_57_0/libs/python/doc/v2/register_ptr_to_python.html