This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: cannot open ifstream/ofstream in binary mode (g++, egcs)
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: cannot open ifstream/ofstream in binary mode (g++, egcs)
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 24 Jan 2000 10:10:00 -0800 (PST)
> This is true for the libstdc++ currently shipping but it is not the
> standard behavior: According to the standard this requirement is
> not present.
This was fixed in the CVS tree a ways back. Look for this in the
ChangeLog:
2000-01-11 Benjamin Kosnik <bkoz@gnu.org>
* bits/sstream.tcc (seekoff): Set based on end of written buffer,
not buffer size.
* testsuite/27_io/stringbuf.cc: Add tests for seekoff(end).
* bits/std_fstream.h (ifstream::open): Add ios_base::in to
openmode.
(ofstream::open): Add ios_base::out to openmode.
-benjamin