[C++-sig] Wrapping pointer types in BPL 2

Stefan Franke franke at ableton.com
Mon May 27 20:01:36 CEST 2002


Dear David,

I have a library some colleagues wrote that I'd like to expose to 
Python. It uses some kind of pre-GC refcounting/smart pointer 
scheme for almost all classes; later on weak pointers were added, 
but there's a lot of code before the weak-ptr era that uses plain
pointers and relies on their validity.

My question: Does BPL 2.0 allow me to wrap classes that are accessed
by a mixture of plain, smart and weak pointers? Can I define the
necessary conversion policies myself where needed?

Thanks,
Stefan






More information about the Cplusplus-sig mailing list