From: Jan Svitok Date: 2006-12-13T22:02:45+09:00 Subject: Re: How to overload the operator !=? On 12/13/06, Vlad Galu wrote: > On 12/13/06, ankyhe@gmail.com wrote: > > I overload ==, >, <, >=, <=successfully, however I can't overload != . > > How to overload operator !=? > > Overloading "==" should do it :) != is a defined using == i.e. a != b is parsed as !(a == b) that means: 1. you cannot override !=, 2. you have to override ==