diff options
author | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-05-08 03:39:50 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-05-08 03:39:50 +0000 |
commit | ee2f20b9c54f8638740fcdafecf9bdf776b734cc (patch) | |
tree | 3c6d547339a9f1dce65a7e635c18085dfbbae5a0 /libstdc++-v3 | |
parent | 39003c99021608d40dd986c707253c9a0beba590 (diff) | |
download | gcc-ee2f20b9c54f8638740fcdafecf9bdf776b734cc.zip gcc-ee2f20b9c54f8638740fcdafecf9bdf776b734cc.tar.gz gcc-ee2f20b9c54f8638740fcdafecf9bdf776b734cc.tar.bz2 |
std_fstream.h (basic_filebuf): Change signature.
2001-05-07 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/2523
* include/bits/std_fstream.h (basic_filebuf): Change signature.
* include/bits/fstream.tcc (basic_filebuf): Change bool argument
to int_type, pass in buffer size info.
* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
unbuffered situation.
(underflow): Remove codecvt bits for the time being.
* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
* include/bits/locale_facets.tcc (_M_extract): Cache dereference
values from iterators, clean.
* src/locale.cc: Ditto.
* include/bits/sbuf_iter.h: Format.
* src/ios.cc: Explicitly pass in buffer sizes at creation time.
* testsuite/27_io/narrow_stream_objects.cc: Add tests.
* testsuite/27_io/filebuf.cc: Tweaks.
* testsuite/27_io/filebuf_members.cc: Tweaks.
From-SVN: r41909
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc b/libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc index c1ca3ca..a52e138 100644 --- a/libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc +++ b/libstdc++-v3/testsuite/27_io/narrow_stream_objects.cc @@ -96,6 +96,7 @@ test01() // libstdc++/2523 void test02() { + using namespace std; int i; cin >> i; cout << "i == " << i << endl; @@ -104,6 +105,7 @@ void test02() // libstdc++/2523 void test03() { + using namespace std; ios_base::sync_with_stdio(false); int i; |