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

2012-06-11 Thread Sybren A . Stüvel
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.

[C++-sig] Re : Re : changing argument value in a C++/Python code

2012-06-11 Thread christophe jean-joseph
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