From 174096c3ab2e06156df8c47c935b36cddf7ac29e Mon Sep 17 00:00:00 2001 From: HackFisher Date: Tue, 20 May 2014 19:17:19 +0800 Subject: [PATCH] Fix issue #25 eofbit std exception is replaced by eof_exception, checked in peek(), so no need to throw std exception when encounter EOF. --- src/io/sstream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/io/sstream.cpp b/src/io/sstream.cpp index 28a5aac..aed1575 100644 --- a/src/io/sstream.cpp +++ b/src/io/sstream.cpp @@ -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; };