E
Edward Diener
Now that operator overloading allows to ref classes to be compared for
equality using == syntax, how does one compare the actual ref pointers (
^ ) for equality instead ?
As an example:
SomeRefObject ^ obj1(..initialized somehow);
SomeRefObject ^ obj2(..initialized somehow);
if (obj1 == obj2) // This compares the objects themselves for equality
in C++/CLI I assume. How do I compare the ref pointers themselves ( ^ )
for equality ?
equality using == syntax, how does one compare the actual ref pointers (
^ ) for equality instead ?
As an example:
SomeRefObject ^ obj1(..initialized somehow);
SomeRefObject ^ obj2(..initialized somehow);
if (obj1 == obj2) // This compares the objects themselves for equality
in C++/CLI I assume. How do I compare the ref pointers themselves ( ^ )
for equality ?