sstream.tcc (overflow): According to 27.7.1.3, p5, actual output is performed by sputc(c).

2003-02-19  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/sstream.tcc (overflow): According to
	27.7.1.3, p5, actual output is performed by sputc(c).

From-SVN: r63147
This commit is contained in:
Paolo Carlini 2003-02-20 01:55:45 +01:00 committed by Paolo Carlini
parent 7b616a297c
commit c85dca2816
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-02-19 Paolo Carlini <pcarlini@unitus.it>
* include/bits/sstream.tcc (overflow): According to
27.7.1.3, p5, actual output is performed by sputc(c).
2003-02-19 Phil Edwards <pme@gcc.gnu.org>
PR libstdc++/9582

View File

@ -105,9 +105,7 @@ namespace std
this->_M_buf_size = __len;
_M_really_sync(this->_M_in_cur - this->_M_in_beg,
this->_M_out_cur - this->_M_out_beg);
*this->_M_out_cur = traits_type::to_char_type(__c);
_M_out_cur_move(1);
__ret = __c;
__ret = this->sputc(traits_type::to_char_type(__c));
}
}
else