
17 Jul
2005
17 Jul
'05
12:09 a.m.
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:006c01c588dc$8325c380$6501a8c0@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