Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2003-12-30 06:13:02


Brock Peabody <brock.peabody_at_[hidden]> wrote:
> How about
>
> shared_ptr<std::auto_ptr<T> > t(new std::auto_ptr<T>(new T))

Thanks, but it won't work :( At some point I need to access
shared_ptr<T> (and there are multiple owners), at some other point I
need to initialize auto_ptr<T> from the sole owner of pointed object.

B.


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