Implications of tighter integration of libg++
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Mon Feb 9 15:33:00 GMT 1998
> say "using namespace std;" as that imports all names. Rather, just
> things like
>
> using std::istream;
> using std::ostream;
> using std::cin;
> using std::cout;
> using std::cerr;
This does not solve the problem I'm talking about. With that scheme,
and the implementation of namespace I have in mind, names would still
come out as Q23std7istream, rather than 7istream as they do now. This
is because the compiler would always resolve names to the place where
they are actually introduced, regardless of any using and typedef
magic applied.
So, even if old sources would still compile, old objects would not
link anymore. This is especially bad in presence of shared libraries
which have to accomodate both sets of header files.
Therefore, I think there is some value to the proposal of installing
libg++ in the compiler-specific directories.
Regards,
Martin
More information about the Gcc
mailing list