
17 Apr
2008
17 Apr
'08
2:29 p.m.
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.