C++: const and typedef
Alexandre Oliva
aoliva@redhat.com
Wed Jul 5 13:27:00 GMT 2000
On Jul 5, 2000, Guignon Thomas <guignon@asci.fr> wrote:
> typedef char* toto;
> void test(const char* t);
In this case, `*t' is const but `t' isn't
> void titi::test(const toto t){
But here, `t' is const while `*t' isn't, so GCC's complaint is
justified.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc-bugs
mailing list