eofbit std exception is replaced by eof_exception, checked in peek(), so no need to throw std exception when encounter EOF.
This commit is contained in:
HackFisher 2014-05-20 19:17:19 +08:00
parent 8a8ff28221
commit 174096c3ab

View file

@ -9,13 +9,13 @@ namespace fc {
public:
impl( fc::string&s )
:ss( s )
{ ss.exceptions( std::stringstream::badbit | std::stringstream::eofbit ); }
{ ss.exceptions( std::stringstream::badbit ); }
impl( const fc::string&s )
:ss( s )
{ ss.exceptions( std::stringstream::badbit | std::stringstream::eofbit ); }
{ ss.exceptions( std::stringstream::badbit ); }
impl(){ss.exceptions( std::stringstream::badbit | std::stringstream::eofbit ); }
impl(){ss.exceptions( std::stringstream::badbit ); }
std::stringstream ss;
};