smart pointers and this pointer

Hi

I had a raw pointer that checks equality with raw pointer. Now I am trying to convert to smart pointer and not really sure how to deal with the "this" pointer.

Any hints?

1
2
3
4
5
6
7
8
9

Triangle *edge12Neighbor = new Triangle();

if(edge12Neighbor == this)
{
   .....................
   .....................
}


How to deal with the above snippet using the smart pointers?

Thanks
The .get() function of a smart pointer retrieves the raw pointer.

For instance see this:
http://www.cplusplus.com/reference/memory/shared_ptr/get/
Topic archived. No new replies allowed.