I have a class MyCloth and one one object instance of that class that I instantiated like this:

MyCloth** cloth1;

And at one point in the program, I will do something like this:

MyCloth** cloth2 = cloth1;

And then at some point later, I want to check to see if cloth1 and cloth2 are the same. (Something like object equality in Java, only here, MyCloth is a very complex class and I can''t build an isEqual function.)

How can I do this equality check? I was thinking maybe checking if they point to the same addresses. Is that a good idea? If so, how do I do that?

Edit
Report