Renaming Symbols cout, cerr, cin, clog

Alexandre Oliva aoliva@redhat.com
Wed May 29 10:10:00 GMT 2002


On May 29, 2002, "Stefan Vogel" <Stefan.Vogel@clarity-ag.net> wrote:

> So is it possible to rename those symbols in future releases of the
> libio!

Definitely not.  The C++ ABI doesn't say anything about different
mangling for say a member-function named cin of class foo, but after
your patch, such a member function will be mangled differently
depending on whether iostream.h is #included before or after the
definition of the class, in each class body.  So it's not as harmless
as you may have made it sound.

-- 
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                Professional serial bug killer



More information about the Libstdc++ mailing list