This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ library for egcs
- To: jbuck at synopsys dot com
- Subject: Re: C++ library for egcs
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 10 Apr 1998 20:22:20 +0200
- CC: egcs at cygnus dot com
- References: <199804101646.JAA26639@atrus.synopsys.com>
> 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