Hi Jim,
On 9 June 2012 03:43, Jim Bosch 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.
Thank you very much for this hint.
I didn't know about call policy.
I have tested the different policies shown there:
http://wiki.python.org/moin/boost.python/CallPolicy
http://www.boost.org/doc/libs/1_49_0/libs/python/doc/tutorial/doc/html/python/functions.
But all of them produce the sam