[C++-sig] Problem with and fix for automatic pointer registration in Boost.Python 1.60
Trigve Siver
trigves at yahoo.com
Tue Mar 8 06:33:17 EST 2016
>________________________________
> From: Stefan Seefeld <stefan at seefeld.name>
>To: cplusplus-sig at python.org
>Sent: Sunday, March 6, 2016 7:03 PM
>Subject: Re: [C++-sig] Problem with and fix for automatic pointer registration in Boost.Python 1.60
>
>
>On 04.03.2016 13:45, Greg Falcon via Cplusplus-sig wrote:
>> 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.
>
>I have merged the PR, and will try to get it into master for the 1.61
>release. Sorry this took so long.
> Stefan
>
Shouldn't there be a note (+ a patch) in a release document (1.60), also? Because this bug looks like showstopper to me.
Thanks
--
Trigve
More information about the Cplusplus-sig
mailing list