Better test for stream state.
This commit is contained in:
parent
65f235d647
commit
b74955cee5
@ -100,7 +100,7 @@ void relay::parseImpl(const string& buffer, const string::size_type position,
|
||||
{
|
||||
Parts newPart = Part_None;
|
||||
|
||||
if ((cont = ((iss >> word) != 0)))
|
||||
if ((cont = !(iss >> word).fail()))
|
||||
{
|
||||
// A little hack for handling comments
|
||||
if (inComment)
|
||||
|
Loading…
Reference in New Issue
Block a user