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:
> --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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at