ifstream(int/FILE*) filebuf(FILE*)

Jean Müller Jean.Muller@cetelem.fr
Tue Aug 28 02:27:00 GMT 2001


  Hello,

  I tried to compile old C++ code with new libstdc++-v3 and i can't find
a constructor of class istream or ifstream (same for output) that can
re-use a Unix file descriptor int or FILE (open, popen, fdopen, etc...).
I've found the constructor of class filebuf that use a FILE* argument but
i can't find the way to have a istream/ifstream using this filebuf...
  Second question : why c_file_type is FILE* and not int ?

  Thanks,
  Jean Müller



More information about the Libstdc++ mailing list