[C++-sig] More pyplusplus custom stuff
s_sourceforge at nedprod.com
Fri Jun 16 00:14:04 CEST 2006
On 15 Jun 2006 at 9:15, David Abrahams wrote:
> > 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.
Can you elaborate?
Doesn't shared_ptr basically hold a lock on a weak_ptr which is held
on a main shared_ptr? I suppose this means I can avoid the refcount
tricks I was using?
More information about the Cplusplus-sig