On 9/25/06, Matt.Sullivan@leica-geosystems.com <Matt.Sullivan@leica-geosystems.com > wrote:
Probably a newbie question, but what's the best way to test if a shared_ptr
and weak_ptr point to the same thing?

My current code uses: if (shared_ptr != weak_ptr.lock())

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 )

Phillip