Hi Luciano
You can use in your class definition something like that:
class_<MyClass, MyClass*> ....
but I don't know why this not work when you have custom constructors like that:
class_<MyClass, MyClass*, , boost::noncopyable> ("MyClass", python::no_init)
.def("__init__", python::make_constructor(my_constructor))
....
BR
Renato
On Tue, Nov 4, 2008 at 6:05 PM, Luciano M. Wolf <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm using boost::python to make bindings and now I got in trouble. I'm
> trying to avoid Python deleting my C++ class before other classes but
> I didn't find any clue on how to do this. Is there a way to tell boost
> that my object should be the last one to be deleted? Thanks in
> advance!
>
> Regards,
> Luciano
> _______________________________________________
> Cplusplus-sig mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig