Subject: Re: [boost] enable_shared_from_this2
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2009-11-02 19:09:10
On Wednesday 28 October 2009, Peter Dimov wrote:
> Frank Mori Hess wrote:
> > I've commited boost/smart_ptr/enabled_shared_from_raw.hpp to trunk (I
> > svn moved enable_shared_from_this2.hpp).
> So long as we're innovating, consider adding weak_from_raw as well. It
> can give you an expired weak_ptr to 'this' from within a destructor,
> which is useful for deregistration.
I think that would require an aliasing constructor for weak_ptr, or friend
access to weak_ptr. Perhaps a modification of
weak_ptr::_internal_assign(), which no longer seems to be used?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk