@m_magalhaes said in IsEqual not defined:
MAXON_OPERATOR_EQUALITY(Int32Pair, a, b);
Thanks, didn't know about the MAXON_OPERATOR_EQUALITY. Very handy indeed.
However, I had already tried providing an equality operator in my Int32Pair class, as such:
Bool operator == (const Int32Pair& other) { return (a == other.a) && (b == other.b); }
But that still resulted in the "IsEqual not defined" compiler error.
The macro, however, is working fine.
Looking further at my implementation of operator==, I now notice I didn't declare it as a const method. Adding the const does get rid of the compiler error. Oh boy! Overlooked a minor "typo", with major consequences.
Again, thanks for the macro.