This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Basic_streambuf::setg() and setp() (2nd take)


>Ok?

Yes, this is ok but you need to do sstream and stringbuf::setbuf as well.

Also, 

+	  if (!(this->_M_mode & ios_base::in))
+	    this->_M_mode = this->_M_mode | ios_base::in;
+	  if (!(this->_M_mode & ios_base::out))
+	    this->_M_mode = this->_M_mode | ios_base::out;

can probably just be

+           // So that the replacement buffer can actually be used.
+	    this->_M_mode =| ios_base::in;
+	    this->_M_mode =| ios_base::out;

-benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]