* The eof() state isn't guaranteed to be set non-lazily. GCC 2.95

compatibility fix.
This commit is contained in:
Eelco Dolstra 2005-05-04 16:29:44 +00:00
parent d8a31da1ea
commit ae6d9033a1
1 changed files with 1 additions and 1 deletions

View File

@ -688,5 +688,5 @@ bool string2Int(const string & s, int & n)
{
istringstream str(s);
str >> n;
return str && str.eof();
return str && str.get() == EOF;
}