From: Maciej Sobczak (maciej_at_[hidden])
Date: 2002-08-19 05:33:21
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:
says for constructor:
template<typename Y> shared_ptr(std::auto_ptr<Y> & r);
"Postconditions: use count for all copies is increased by one."
Shouldn't it read:
"Postconditions: use count is 1."
There are no other copies when taking ownership from std::auto_ptr.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk