BUG: Fix stream state on successfully reading a string.

This commit is contained in:
Brad King 2007-04-19 12:44:04 -04:00
parent ded4cb6f8d
commit 94e27c1073
1 changed files with 1 additions and 1 deletions

View File

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