Frits van Bommel wrote: > The compare will call opEquals, which will compare addresses by default. > (Assuming the contents are class instances, not structs. Structs compare > their contents by default) And what Tom said: if you want to enforce identity-comparison (or avoid the virtual function-call) use 'is' instead of '=='.