Boost logo

Boost :

From: Maciej Sobczak (maciej_at_[hidden])
Date: 2002-08-19 05:33:21


Hi,

I'm not sure if this issue has been raised before, but the search with
Google did not reveal anything.

The documentation for shared_ptr:

http://www.boost.org/libs/smart_ptr/shared_ptr.htm#constructors

says for constructor:

template<typename Y> shared_ptr(std::auto_ptr<Y> & r);

that:

"Postconditions: use count for all copies is increased by one."

Shouldn't it read:

"Postconditions: use count is 1."

instead?
There are no other copies when taking ownership from std::auto_ptr.

Cheers,

Maciej Sobczak
http://www.maciejsobczak.com/


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