Commit db7948c2 by Paolo Carlini Committed by Paolo Carlini

std_streambuf.h (setg, setp): Don't touch _M_mode.

2003-05-08  Paolo Carlini  <pcarlini@unitus.it>

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

From-SVN: r66595
parent 8b5e2ce4
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment