bool MyTypeEqual(MyType* a, MyType* b) { return *a == *b; }
MyType* x = new MyType...
MyType* y = new MyType...
EXPECT_PRED2(MyTypeEqual, x, y);
You might also get the behavior you want by defining something like:
bool operator==(YourType* ptr1, YourType* ptr2) { return *ptr1 == *ptr2; }
Note this is different than the bool operator== for YourType -- you're
defining the equality function to pointers to your type.
Does this help?
--
C. Keith Ray
Coach, Trainer, and Developer at Industrial logic, Inc.
http://industriallogic.com/shop "Amplify Your Agility"
Coaching and Live and Web-based Training