This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this template problem in ecgs?
- To: nlee011 at math dot auckland dot ac dot nz (Nicholas Lee)
- Subject: Re: Is this template problem in ecgs?
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 24 Jun 98 17:24:10 PDT
- Cc: oliva at dcc dot unicamp dot br, egcs at cygnus dot com
> I would assume since x and y are declared as const T&, that the compiler
> should issue a warning that there was a attempt to discard constness without
> a const_cast.
const violations should, IMHO, be errors, not warnings. They certainly
are with every other C++ compiler I've used.