This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
ifstream(int/FILE*) filebuf(FILE*)
- To: libstdc++ at gcc dot gnu dot org
- Subject: ifstream(int/FILE*) filebuf(FILE*)
- From: Jean Müller <Jean dot Muller at cetelem dot fr>
- Date: Tue, 28 Aug 2001 11:27:34 +0200 (MET DST)
- Cc: Jean dot Muller at cetelem dot fr
- Reply-To: Jean Müller <Jean dot Muller at cetelem dot fr>
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