Skip to content
Snippets Groups Projects
Commit 98f41bdf authored by Brad King's avatar Brad King
Browse files

BUG: Fix stream state on successfully reading a string.

parent 4b52e23b
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ operator>>(@KWSYS_NAMESPACE@_ios::istream& is,
// Set flags for resulting state.
if(is.peek() == EOF) { state |= @KWSYS_NAMESPACE@_ios::ios::eofbit; }
if(success) { state |= @KWSYS_NAMESPACE@_ios::ios::failbit; }
if(!success) { state |= @KWSYS_NAMESPACE@_ios::ios::failbit; }
}
// Set the final result state.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment