From db7948c2d8dc5ac573bfb3516fa34c2ba086dabc Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Thu, 8 May 2003 13:47:45 +0200 Subject: [PATCH] std_streambuf.h (setg, setp): Don't touch _M_mode. 2003-05-08 Paolo Carlini * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode. From-SVN: r66595 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/std/std_streambuf.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b9c7bcb0a04..c827bfdb261 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2003-05-08 Paolo Carlini + + * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode. + 2003-05-07 Richard Henderson PR c++/10570 diff --git a/libstdc++-v3/include/std/std_streambuf.h b/libstdc++-v3/include/std/std_streambuf.h index 14a5d89ad4a..946e9bc600c 100644 --- a/libstdc++-v3/include/std/std_streambuf.h +++ b/libstdc++-v3/include/std/std_streambuf.h @@ -508,8 +508,6 @@ namespace std _M_in_beg = __gbeg; _M_in_cur = __gnext; _M_in_end = __gend; - if (!(_M_mode & ios_base::in) && __gbeg && __gnext && __gend) - _M_mode = _M_mode | ios_base::in; } // [27.5.2.3.2] put area access @@ -555,8 +553,6 @@ namespace std { _M_out_beg = _M_out_cur = _M_out_lim = __pbeg; _M_out_end = __pend; - if (!(_M_mode & ios_base::out) && __pbeg && __pend) - _M_mode = _M_mode | ios_base::out; } // [27.5.2.4] virtual functions -- 2.30.2