How do you check if two pointers point to the same object?
For a bit of facts here is the relevant text from the specifications Equality operator (==,!=) Pointers to objects of the same type can be compared for equality with the ‘intuitive’ expected results: From ยง 5.10 of the C++11 standard: Pointers of the same type (after pointer conversions) can be compared for equality. Two pointers … Read more