[C++-sig] Boost::Python: overriding and smart pointers

Sybren A. Stüvel sybren at stuvel.eu
Mon Jun 11 11:12:14 CEST 2012


Hi Jim,

On 9 June 2012 03:43, Jim Bosch <talljimbo at gmail.com> wrote:

>  - Use ExampleObject_wrapper_ptr in the class_ declaration instead of
> ExampleObjectPtr.
>
>  - Also register a converter for ExampleObjectPtr, with this line:
>
>       register_ptr_from_python<**ExampleObjectPtr>();
>

Yep, that did the trick. Thanks!


> At least it works on my system (linux, Python 2.6).
>


Apparently it also works on Win7 with VS2010 and Python 3.2 ;-)

Best,
-- 
Sybren A. Stüvel

http://stuvel.eu/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20120611/807ca8dc/attachment.html>


More information about the Cplusplus-sig mailing list