Skip to content

Conversation

vslashg
Copy link
Contributor

@vslashg vslashg commented Mar 1, 2016

The conditional instantiation magic of maybe_register_pointer_to_python() assumes that use_value_holder and use_back_reference will be one of the boost::mpl::bool_ types, but this assumption is no longer true in Boost 1.60, where they can be standard library bool wrappers instead.

Explicitly defining these types as mpl::bool_ classes fixes #56.

The conditional instantiation magic of maybe_register_pointer_to_python() assumes that use_value_holder and use_back_reference will be one of the boost::mpl::bool_ types, but this assumption is no longer true in Boost 1.60, where they can be standard library bool wrappers instead.

Explicitly defining these types as mpl::bool_ classes fixes boostorg#56.
@stefanseefeld
Copy link
Member

Thanks for the patch. I verified that this works locally, so let's merge this.

stefanseefeld added a commit that referenced this pull request Mar 6, 2016
Fix auto-pointer registration in Boost Python 1.60.
@stefanseefeld stefanseefeld merged commit e9c265a into boostorg:develop Mar 6, 2016
UniqMartin pushed a commit to Homebrew/homebrew-core that referenced this pull request Apr 22, 2016
Add a patch that backports an upstream commit to fix a bug in 1.60.

Patch derived from boostorg/python@e9c265a
Pull request boostorg/python#59

Closes #516.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
ptosco added a commit to ptosco/MINGW-packages that referenced this pull request Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<...>
2 participants