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: egcs at cygnus dot com
- Subject: Re: Is this template problem in ecgs?
- From: Nathan Myers <ncm at cygnus dot com>
- Date: Fri, 26 Jun 1998 16:58:44 -0700
- Newsgroups: cygnus.egcs
- Organization: http://www.cantrip.org/
- References: <Pine.GSO.3.96.980624231042.19548A-100000@matu1.math.auckland.ac.nz>, <199806250024.RAA14322.cygnus.egcs@atrus.synopsys.com>
Joe Buck wrote:
>
> > 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.
Agree, at least for C++.
Nathan Myers
ncm@cantrip.org