where is iostream.h, fstream.h, ...

Levente Farkas lfarkas@mindmaker.hu
Tue Jul 11 01:34:00 GMT 2000


brent verner wrote:
> 
> On 07 Jul 2000 at 01:36 (-0600), llewelly@dbritsch.dsl.xmission.com wrote:
> |
> | Old style header names like iostream.h, fstream.h are not part of the
> |   ISO C++ standard. The standard names have no .h . (e.g. iostream, map
> |   list, etc)
> 
> On a similar note:
>   Would it be sane to shipmake available a set of 'compatibility'
>   headers similar to the following?
> 
> brent@sleepy$ cat ./iostream.h
> #warning <iostream.h> is not a standard c++ header
> #warning update this code to use <iostream>
> #ifndef __NONSTD_HACK__
> #define __NONSTD_HACK__
> #include <iostream>
> using namespace std;
> #endif
> 
> I ask because I've had to do just this to get some old (rather,
> noncompliant) code to compile with a libstdc++-v3 gcc. If there
> is any interest, let me know and I'll start on this when I get
> a spare moment.

I don't think it's a good idea since old header files are not 
compatible with the new ones. it's not just a using namespace std;
(eg. the old stream had some functions which the new hasn't).

 
 -- Levente
 "The only thing worse than not knowing the truth is
  ruining the bliss of ignorance."


More information about the Libstdc++ mailing list