Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] converting C++ object to PyObject
From: Johan Råde (johan.rade_at_[hidden])
Date: 2011-12-04 04:11:43


On 12/3/2011 1:13 PM, Johan Råde wrote:
> On 8/8/2011 6:21 AM, Ravi wrote:
>> On Friday, July 29, 2011 05:48:32 AM Johan Råde wrote:
> ...
>>> Am I using api::object incorrectly, or should I not use api::object at
>>> all but do something completely different?
>>
>> As far as I can tell, the above should work. Could you please file a
>> ticket on
>> trac?
>>
>> Ravi
>
> Now I have finally done that:
> https://svn.boost.org/trac/boost/ticket/6203
>
> --Johan

It turned out not to be a bug.
The python::object constructor does not take a raw pointer, you must
give it a shared pointer. See https://svn.boost.org/trac/boost/ticket/6203


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net