std_streambuf.h (setg, setp): Don't touch _M_mode.
authorPaolo Carlini <pcarlini@unitus.it>
Thu, 8 May 2003 11:47:45 +0000 (13:47 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 8 May 2003 11:47:45 +0000 (11:47 +0000)
2003-05-08  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.

From-SVN: r66595

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/std_streambuf.h

index b9c7bcb0a043a480ca7c8ccb98b2b881495af894..c827bfdb26163def13050404279121d382d64bc1 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-08  Paolo Carlini  <pcarlini@unitus.it>
+
+       * include/std/std_streambuf.h (setg, setp): Don't touch _M_mode.
+
 2003-05-07  Richard Henderson  <rth@redhat.com>
 
         PR c++/10570
index 14a5d89ad4aff841bddef3fa93e74ed978ea192c..946e9bc600c1daf69bfa90217a46a647b7079999 100644 (file)
@@ -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