C++ library for egcs
Martin von Loewis
martin@mira.isdn.cs.tu-berlin.de
Fri Apr 10 12:35:00 GMT 1998
> No, in compliant C++ code, is is *not* correct. ostream is now a typedef!
> ostream is really basic_ostream<char>. This breaks the world.
No, it is correct. I assume we both talk about
class ostream;
#include <iostream>
This is correct, as it expands to
class ostream;
namespace std{
//...
typedef basic_ostream<char> ostream;
}
There is nothing wrong with that, you have an incomplete class
::ostream, and a typedef std::ostream. They are not the same,
but they aren't conflicting, either.
Martin
More information about the Gcc
mailing list