From: Vlad Galu Date: 2006-12-13T23:20:20+09:00 Subject: Re: How to overload the operator !=? 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 :) > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.