[C++-sig] Shared_ptr created by python wrapper doesn't know about the python reference?
Peter Dimov
pdimov at gmail.com
Fri May 13 15:09:45 CEST 2005
David Abrahams wrote:
> Peter: it would be interesting if there was a way to get ahold of the
> weak_ptr management stuff in the deleter of the outer shared_ptr, so
> that when (*) is destroyed its weak_ptrs could be re-seated to work on
> (**)... am I making any sense?
I don't think that this would be possible. Weak_ptr instances cannot be
reseated since they can't be enumerated.
More information about the Cplusplus-sig
mailing list