friend templates in gcc-2.8.0 & egcs-1.0.1
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Jan 31 12:16:00 GMT 1998
Levente Farkas writes:
> 1, from where can I know things like that ?
It is Standard C++, but I'm not sure there are any books that cover
this already. You might buy a copy of the C++ Standard :-)
But I'd rather have this particular issue in the FAQ.
> So is there any backward compatible solution ???
You may use -fguiding-decls to have a backward-compatible behavior,
but have in mind that you'll not be programming standard C++. The
best you can do is to use SGI STL-like compatibility macros. Take a
look at stl_config.h, as installed by egcs and gcc, and modify your
code so that it will compile with both outdated compilers and
Standard-compliant ones.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc
mailing list