Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Philip Abbet <philip.abbet@my...> - 2006-11-17 12:17:56
I'm pretty new to Py++ and Boost::Python.
Consider the following code (taken from the unit tests of my wrapped
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.
The result is that the logManager now holds an invalid pointer, and will
throw a C++ exception when trying to use it.
Is there any workaround (besides keeping a reference to every object on