Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-04-09 08:22:20

> From: "Beman Dawes" <bdawes_at_[hidden]>
> > The primary reason to use scoped_ptr rather than auto_ptr is to let
> readers
> > of your code know that you intend "resource acquisition is
> initialization"
> > to be applied only for the current scope, and have no intent to
> transfer
> > ownership.

After thinking about this a bit more, "std::auto_ptr<T> const" looks
equivalent to boost::scoped_ptr<T>.

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at