From: Jan Svitok Date: 2006-12-14T00:48:22+09:00 Subject: Re: How to overload the operator !=? On 12/13/06, Vlad Galu wrote: > On 12/13/06, Jan Svitok wrote: > > 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 == > > Which is precisely what I meant :) Right, I just though some clarification would not harm ;-) I should've written that...