Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-29 13:03:27


Daniel Frey:
> Just to clarify: The proposed changes do or do not include the current
> extension to allow shared_from_this() to be called during the ctor?

My current line of thinking is that they should not, as even Frank is having
second thoughts about it. But I haven't made up my mind yet. There's not
much time left though.

> Except you think I can not be of any help... :-/

Not really. I just think that you're currently contributing in the wrong
area. We need to flesh out the specifications of the changes we are
proposing. And with regards to the implementation, you could for example
contrubute boost/make_shared.hpp (including documentation and tests), which
is already accepted and (I hope) stable and really needs to be in 1.36.

> I think that if we adopt the approach of turning enable_shared_from_this
> into a non-template class and make shared_from_this a free function,
> there would no longer be any need for a virtual dtor.

Yes, that's true. I view this as a separate proposal though since tying two
more or less independent changes together increases the likelihood of both
being rejected.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk