This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Is this template problem in ecgs?



> 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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]