fstream.tcc (basic_filebuf::setbuf): Don't set _M_out_end, _M_set_indeterminate() does it.

2003-04-14  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
	_M_out_end, _M_set_indeterminate() does it.

From-SVN: r65582
This commit is contained in:
Paolo Carlini 2003-04-14 19:57:48 +02:00 committed by Paolo Carlini
parent 2fcb395cd4
commit 22fc0e9ffe
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-04-14 Paolo Carlini <pcarlini@unitus.it>
* include/bits/fstream.tcc (basic_filebuf::setbuf): Don't set
_M_out_end, _M_set_indeterminate() does it.
2003-04-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* os/hpux/ctype_inline.h: Replace with gnu-linux version.

View File

@ -428,8 +428,6 @@ namespace std
// Step 2: Use the external array.
this->_M_buf = __s;
this->_M_buf_size = __n;
// Consistently set the end of buffer pointer.
this->_M_out_end = this->_M_buf + this->_M_buf_size;
_M_set_indeterminate();
}
_M_last_overflowed = false;