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]
Other format: [Raw text]

Re: Bug or another C++ oddity?


George Garvey <tmwg-gcc@inxservices.com> writes:

>    I expected that T::i() would always call the const i() in S, because
> T::i() is a const function. I expected that meant that T::s would be
> const, too.

The pointer T::s is const, but it isn't a poointer to a const object.


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