26 Sep
2006
26 Sep
'06
1:06 a.m.
Phillip Hellewell
I don't know for sure, but can't you convert the shard_ptr to a weak_ptr and write this: if( weak_ptr(shared_ptr) != weak_ptr )
No, there aren't any weak_ptr == or != operators either. I could write: weak_ptr temp(shared_ptr); if ( !(temp < weak_ptr) && !(weak_ptr < temp)) to test for weak_ptr ownership equivalency, but I think I'll just stick to the weak_ptr.lock(). thanks, Matt