
16 Sep
2011
16 Sep
'11
6:24 p.m.
On Fri, Sep 16, 2011 at 11:11 AM, John M. Dlugosz
I'm wondering why there is not an efficient built-in way to check whether two things (e.g. a shared_ptr and a weak_ptr, but any combination should work) refer to the same object.
It depends what you mean by "refer to the same object". You can use
!(p1