std_fstream.h (_M_destroy_pback): Use _M_in_beg instead of unnecessarily taking the...
authorPaolo Carlini <pcarlini@unitus.it>
Mon, 2 Jun 2003 15:36:24 +0000 (17:36 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 2 Jun 2003 15:36:24 +0000 (15:36 +0000)
commitccb50b8111f3e370a92be2a2367831e98e7bcfff
treea795d144d37b71226e8cb18a9c4ac6b3ed683d37
parent2a9e3b720c1f7bb81a9ece89422593d5a131a4fe
std_fstream.h (_M_destroy_pback): Use _M_in_beg instead of unnecessarily taking the address of _M_pback.

2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_fstream.h (_M_destroy_pback): Use _M_in_beg
instead of unnecessarily taking the address of _M_pback.
(xsgetn): Simplify slightly for a single char pback buffer.

2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/sstream.tcc (seekoff): Remove four unnecessary
variables and two 'if', clean up.

2003-06-02  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/sstream.tcc (seekpos): Test against _M_out_lim
not _M_out_end, since the former actually points to the string
end (vs buffer end).
* testsuite/27_io/basic_stringbuf/seekpos/char/3.cc: New.

From-SVN: r67334
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/sstream.tcc
libstdc++-v3/include/std/std_fstream.h
libstdc++-v3/testsuite/27_io/basic_stringbuf/seekpos/char/3.cc [new file with mode: 0644]