|
Boost : |
From: Daniel Frey (d.frey_at_[hidden])
Date: 2008-07-28 15:51:56
On Mon, 2008-07-28 at 21:52 +0300, Peter Dimov wrote:
> Daniel Frey:
> > d) Besides the use case above, what do you think about using this
> > pattern to allow shared_from_this to be called in the ctor?
>
> I think that once #2126 is fixed (I'm waiting for 1.36 to go out of the
> door), shared_from_this will start working inside of constructors invoked by
> make_shared, unless we do something to specifically disallow that.
Sounds good to me. Which leaves the question whether you intend to
guarantee that or not (in Boost and/or in C++0x). But maybe I should
just wait and see what happens...
What about b) from my previous mail? Am I misreading the documentation
(N2352/N2691)?
Regards, Daniel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk