2004-09-29 Paolo Carlini <pcarlini@suse.de>
commit86777552b33412a3437f8253546d3e9bf3b4b76d
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 21:14:43 +0000 (29 21:14 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Sep 2004 21:14:43 +0000 (29 21:14 +0000)
tree7ddbfb3d8fde45554eca1fb9fedb2a481d11dd26
parentdf4d0ece4fe5366ed0261b32b6e5cdb2dc8252fc
2004-09-29  Paolo Carlini  <pcarlini@suse.de>

* include/std/std_sstream.h (basic_stringbuf(ios_base::openmode)):
Don't use _M_stringbuf_init, keep the pointers null, per 27.7.1.1.
(str()): Slightly tweak, protect from pptr() == 0.
(_M_update_egptr()): Likewise.
* include/bits/sstream.tcc (ssekoff, seekpos): In order to check
for an empty buffer use __beg instead of _M_string.capacity().
* testsuite/27_io/basic_stringbuf/cons/char/1.cc: New.
* testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc: Likewise.

* testsuite/27_io/basic_filebuf/cons/char/1.cc: New.
* testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_streambuf/cons/char/1.cc: Update.
* testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc: Likewise.

2004-09-29  Paolo Carlini  <pcarlini@suse.de>
    Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/testsuite_io.h (class constraint_buf): New, extended
and templatized version of constraint_filebuf; add typedefs for
streambuf/stringbuf/filebuf and wchar_t counterparts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88307 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc
libstdc++-v3/include/std/std_sstream.h
libstdc++-v3/testsuite/27_io/basic_filebuf/cons/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_filebuf/cons/wchar_t/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_streambuf/cons/char/1.cc
libstdc++-v3/testsuite/27_io/basic_streambuf/cons/wchar_t/1.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/cons/char/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_stringbuf/cons/wchar_t/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_io.h