[C++-sig] More pyplusplus custom stuff

David Abrahams dave at boost-consulting.com
Thu Jun 15 15:15:58 CEST 2006

"Niall Douglas" <s_sourceforge at nedprod.com> writes:

> The solution is to upcall any child deletions so BPL can unhook the 
> relevent python object from its C++ sibling.

You could simplify that system a lot by using shared_ptr to hold the
children in C++, and building a new smart pointer around a core
weak_ptr, that you use as the HeldType in your Python classes.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list