Re: [pygccxml-development] Memory ownership
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-11-17 17:55:56
|
On 11/17/06, Philip Abbet <phi...@my...> wrote: > Hello > > I'm pretty new to Py++ and Boost::Python. > > Consider the following code (taken from the unit tests of my wrapped > library): > > self.logManager.addListener(MockLogListener()) > > The C++ prototype of the addListener method is: > > void addListener(ILogListener* pListener); > > > I didn't found a way to specify that the logManager instance is now > responsible of the destruction of the listener object. Several classes > acts this way in my library. http://boost.org/libs/python/doc/v2/faq.html#ownership http://language-binding.net/pyplusplus/documentation/inserting_code.html I hope the links will help you. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |