Better test for stream state.

This commit is contained in:
Vincent Richard 2013-01-15 13:05:21 +01:00
parent 65f235d647
commit b74955cee5

View File

@ -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)