istream::operator bool() is explicit in C++11, use git diff

This commit is contained in:
Kyzentun
2014-09-02 14:33:55 -06:00
parent cecfff079d
commit e3f8d272c1
+2 -2
View File
@@ -1753,12 +1753,12 @@ void MakeLower( wchar_t *p, size_t iLen )
bool operator>>(const RString& lhs, int& rhs)
{
return istringstream(lhs) >> rhs;
return !!(istringstream(lhs) >> rhs);
}
bool operator>>(const RString& lhs, float& rhs)
{
return istringstream(lhs) >> rhs;
return !!(istringstream(lhs) >> rhs);
}
int StringToInt( const RString &sString )