std_sstream.h (underflow): Change to single return.

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

	* include/std/std_sstream.h (underflow): Change to single return.

From-SVN: r66234
This commit is contained in:
Paolo Carlini 2003-04-29 19:47:38 +02:00 committed by Paolo Carlini
parent 1be3f80ff8
commit d4be2966f3
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-04-29 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_sstream.h (underflow): Change to single return.
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf): is currently

View File

@ -190,10 +190,12 @@ namespace std
virtual int_type
underflow()
{
int_type __ret;
if (this->_M_in_cur < this->_M_in_end)
return traits_type::to_int_type(*this->_M_in_cur);
__ret = traits_type::to_int_type(*this->_M_in_cur);
else
return traits_type::eof();
__ret = traits_type::eof();
return __ret;
}
// [documentation is inherited]