cannot open ifstream/ofstream in binary mode (g++, egcs)

Benjamin Kosnik bkoz@cygnus.com
Sat Apr 1 00:00:00 GMT 2000


> 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



More information about the Libstdc++ mailing list