|
Boost : |
From: Ray_S_Gallimore_at_[hidden]
Date: 2001-04-26 07:34:47
Hello,
Many thanks to all who make these libraries available.
I found the smart pointer documentation to be very good. Here is some
errata:
======================
The scoped_ptr docs under the Handle/Body Idiom says:
"One common usage of shared_pointer ..."
For this section of the documentation, shouldn't 'shared_pointer ' be
'scoped_ptr' ?
======================
The shared_ptr docs under shared_ptr example says:
"Note that at the termination of the creation loop, some of the FooPtr
objects may have use_count()==1 rather than
use_count()==2, since foo_set is a std::set rather than a std::multiset."
This implies that std::set will reject a duplicate key. But, given the
example as written, won't 'new' always produce a unique value - and hence a
unique key? That is, if the set objects are ordered based on the address
of Foo objects, the use_count() will always be 2 at the termination of the
creation loop.
Thanks again.
Ray
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk