C++ library for egcs
Joe Buck
jbuck@synopsys.com
Fri Apr 10 12:35:00 GMT 1998
>
> > The practice I'm most concerned about is that users tend to write
> >
> > class ostream;
> >
> > Historically this has been a wise thing to do -- compilation time on
> > big projects is improved greatly if you do this, and the committee
> > broke it.
>
> How much of a real problem is this? In a compliant C++ library, this
> declaration in itself is correct, even if you include <iostream>
> later.
No, in compliant C++ code, is is *not* correct. ostream is now a typedef!
ostream is really basic_ostream<char>. This breaks the world.
> The problem comes when they include <iostream.h>, as it will have a
> using declaration for std::iostream.
No, you are missing the point. That is not the major problem.
More information about the Gcc
mailing list