Fix issue #25
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:
parent
8a8ff28221
commit
174096c3ab
1 changed files with 3 additions and 3 deletions
|
|
@ -9,13 +9,13 @@ namespace fc {
|
||||||
public:
|
public:
|
||||||
impl( fc::string&s )
|
impl( fc::string&s )
|
||||||
:ss( s )
|
:ss( s )
|
||||||
{ ss.exceptions( std::stringstream::badbit | std::stringstream::eofbit ); }
|
{ ss.exceptions( std::stringstream::badbit ); }
|
||||||
|
|
||||||
impl( const fc::string&s )
|
impl( const fc::string&s )
|
||||||
:ss( 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;
|
std::stringstream ss;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue