c++-sig@python.org
[Top] [All Lists]

Re: [C++-sig] More pyplusplus custom stuff

Subject: Re: [C++-sig] More pyplusplus custom stuff
From: David Abrahams
Date: Thu, 15 Jun 2006 09:15:58 -0400
"Niall Douglas" <s_sourceforge@xxxxxxxxxxx> 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
www.boost-consulting.com

_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig

<Prev in Thread] Current Thread [Next in Thread>