Boost logo

Boost :

From: Ed Brey (brey_at_[hidden])
Date: 2001-04-09 09:54:16


From: "Peter Dimov" <pdimov_at_[hidden]>
> After thinking about this a bit more, "std::auto_ptr<T> const" looks
> equivalent to boost::scoped_ptr<T>.

Not quite:

 int i = 3;
 scoped_ptr<int> s;
 auto_ptr<int> const a;
 s.reset(&i);
 a.reset(&i); // No good, since a is const.


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