Commit d4be2966 by Paolo Carlini Committed by Paolo Carlini

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
parent 1be3f80f
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> 2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf): is currently * include/std/std_streambuf.h (_M_buf): is currently
......
...@@ -190,10 +190,12 @@ namespace std ...@@ -190,10 +190,12 @@ namespace std
virtual int_type virtual int_type
underflow() underflow()
{ {
int_type __ret;
if (this->_M_in_cur < this->_M_in_end) 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 else
return traits_type::eof(); __ret = traits_type::eof();
return __ret;
} }
// [documentation is inherited] // [documentation is inherited]
......
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