This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ library for egcs


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]