This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: missing operator !=
On Tue, Mar 20, 2001 at 08:31:44AM +0100, Gabriel Dos Reis wrote:
> Stefan Seefeld <seefeld@sympatico.ca> writes:
>
> [...]
>
> | The compiler complains about an undefined operator != for the iterators.
> | Shouldn't this operator be generated from the existing operator == ?
>
> No.
By which Gaby means: no, you have to supply your own definition of op!=.
If anybody mentions rel_ops, laugh in his face and point to the FAQ.
Nathan Myers
ncm at cantrip dot org