* The eof() state isn't guaranteed to be set non-lazily. GCC 2.95
compatibility fix.
This commit is contained in:
parent
d8a31da1ea
commit
ae6d9033a1
|
@ -688,5 +688,5 @@ bool string2Int(const string & s, int & n)
|
||||||
{
|
{
|
||||||
istringstream str(s);
|
istringstream str(s);
|
||||||
str >> n;
|
str >> n;
|
||||||
return str && str.eof();
|
return str && str.get() == EOF;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue