streambuf_iterator.h (class istreambuf_iterator): Consistently use _M_c to cache...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 8 Nov 2004 17:55:54 +0000 (17:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 8 Nov 2004 17:55:54 +0000 (17:55 +0000)
commit15fb0dbeb707ea75243d97eab9270b51bf446c94
treec23e50eaf3aa77026b82b22399caa173f4232326
parent7bff66a715c67c1c3206a08ecdd19bb04d2bd475
streambuf_iterator.h (class istreambuf_iterator): Consistently use _M_c to cache the current char...

2004-11-08  Paolo Carlini  <pcarlini@suse.de>

* include/bits/streambuf_iterator.h (class istreambuf_iterator):
Consistently use _M_c to cache the current char, i.e., not only
when operator++(int) is involved; change _M_c to mutable.
(_M_get()): Always save the return value of _M_sbuf->sgetc() into
_M_c.
* testsuite/22_locale/time_get/get_monthname/char/1.cc: Fix
(long standing) typo.
* testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/char/1.cc: Likewise.
* testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Likewise.

From-SVN: r90275
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/streambuf_iterator.h
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc