BUG: Fix stream state on successfully reading a string.
This commit is contained in:
parent
ded4cb6f8d
commit
94e27c1073
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue