Boost.Python 1.60 has a bug, introducing an incompatibility from 1.59, and
first noted on this mailing list on January 11.  What has changed is that a
class declaration of the form

  class_<Foo, shared_ptr<Foo>>("Foo");

will no longer automatically register a converter for the shared_ptr
wrapper.

This is not an intentional change, but a bug exposed by a change to
Boost.MPL.  The template metaprogramming in class_metadata.hpp makes
assumptions about the types used in Boost.MPL that are no longer true.

I have posted a fix to this issue at
https://github.com/boostorg/python/pull/59/files, which at least solves the
problem for us.  This patch, when applied against 1.60, fixes pointer
registration.  It can also be applied to 1.59 without issue.

If someone on this list could take a look at this change, I'd appreciate
it.  Let me know if you have any questions.

Thanks,
Greg Falcon
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
https://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to