|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-17 10:29:25
Frank Mori Hess wrote:
> Also, there is no reason not to add a simple helper free function:
>
> template<typename T>
> shared_ptr<T> shared_from_this(T *t)
> {
> return t->shared_from_this(t);
> }
Not bad. This could be made a friend of esft and the only (public) accessor.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk