This is the mail archive of the
mailing list for the GCC project.
Re: iostream question
Are you saying I can no longer forward declare an ostream?
That would mean that for a declaration like so
ostream& operator<< (ostream&, const myClass);
I have to include the iostream header file in my header file. That seems odd. There's got to be a better way.
Gabriel Dos Reis wrote:
Robert Schweikert <email@example.com> writes:
| I am trying to compile a large application with gcc 3.2, (porting from
| gcc 2.95.2) and am getting errors like this.
| /home/rjschwei/local/include/c++/3.2/backward/iostream.h:35: using
| `ostream' introduced ambiguous type `ostream'
Did your application already declared ostream before #include <iostream.h>?
(I suspect that is the case). If so, then, you no option but delete
Robert Schweikert MAY THE SOURCE BE WITH YOU