|
Boost : |
From: Joe Gottman (jgottman_at_[hidden])
Date: 2005-07-16 19:09:50
"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:006c01c588dc$8325c380$6501a8c0_at_pdimov2...
> Right... you can thank Joe for that, with the latest changes to TR1 (*)
> operator< can tell you whether a weak_ptr is empty. The original version
> did
> not guarantee that all empty weak pointers compared equivalent. :-)
I just checked the documentation for operator<() for shared_ptr and
weak_ptr, and it says two shared_ptrs (or weak_ptrs) are equivalent if and
only if they share ownership. You should probably add "or are both empty".
Joe Gottman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk