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


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

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



  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


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