Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-30 09:52:15

From: "Ed Brey" <brey_at_[hidden]>
> The constructor for boost::scoped_ptr's has an overload for std::auto_ptr,
which is good,
> IMHO. However, its reset member has no similar overload. This seems like
an oversight.
> Is it?

The motivating case for this constructor was

std::auto_ptr<X> createX();

scoped_ptr<X> px(createX());

Nobody requested a reset(auto_ptr) method. FWIW, shared_ptr uses operator=
for this purpose, and not reset(), but scoped_ptr has no assignment

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