Boost logo

Boost :

From: Valentin Samko (boost_at_[hidden])
Date: 2005-10-02 14:08:00


Hello Peter,
Sunday, October 2, 2005, 6:24:32 PM, you wrote:

PD> Valentin Samko wrote:
>> Why is the shared counter used to compare shared_ptr objects, and not
>> the container pointer?

PD> Please see
PD> http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2004/n1590.html

Thanks.

Was the option of checking first if the contained pointer is
equivalent considered?

i.e. px != rhs.px && pn < rhs.pn

--
Valentin Samko - http://val.samko.info

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