This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: c++/2943
- To: andrei dot keis at morganstanley dot com, gcc-gnats at gcc dot gnu dot org, ik dot yoo at morganstanley dot com, rodrigc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Subject: Re: c++/2943
- From: rodrigc at gcc dot gnu dot org
- Date: 29 May 2001 02:16:32 -0000
Synopsis: method fd() missing in filebuf
State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Mon May 28 19:16:32 2001
State-Changed-Why:
gcc 3.0 now has a fully compliant implementatino of the
C++ Standard Library. filebuf does NOT have a method
fd() in the C++ Standard, so it was removed in gcc 3.0.
See:
http://gcc.gnu.org/ml/libstdc++/2001-q1/msg00594.html
I recommend you look at the following example, from the book:
"The C++ Standard Library - A Tutorial and Reference"
by Nicolai M. Josuttis.
http://myweb.onramp.net/~huston/cpp/stdLibIo.txt
Josuttis gives an example of a fdoutbuf class which
extends streambuf, and keeps a reference to a file descriptor.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2943&database=gcc