From: Adam N. <a.n...@sh...> - 2011-02-19 08:08:18
|
Hi Johan, Thanks for the quick response! > Have you looked at SWIG's handling of boost::shared_ptr? It is very nice and > creates a seamless layer of shared memory control between Python and C++ Yes, I have used this to declare all my classes as being boost::shared_ptr. > If all classes in an inheritance chain are declared shared_ptr classes they > will also get correct inheritance in Python. Hmm, well for me the Python isinstance function keeps returning false. Are you sure boost_shared_ptr.i can handle this? Do I need to use any special Python syntax to specify the class name? Cheers, Adam. |