Eric Jardim <ericjardim@gmail.com> writes:
On Tue, 29 Mar 2005 13:48:29 -0500, David Abrahams <dave@boost-consulting.com> wrote:
You might consider using make_constructor: http://aspn.activestate.com/ASPN/Mail/Message/c++-sig/2065069 shows an example.
Funny, why I didn't saw this on the docs? :)
Anyway, is that bug, comented on your reply, corrected on the newest version (1.32)?
I think so.
Hem. Well you can just use: .def("__del__", some_function ) where: void some_function(QApplication& x) { /*whatever*/ }
Sure... I tried that before, but I thought that it was too hacky :) I was afraid of overrinding the original destructor or something...
Why don't you try it and see what happens? Put a printf in your destructor and see if it gets called. -- Dave Abrahams Boost Consulting www.boost-consulting.com