From e3f8d272c11be0297fe29ce9e43d201f70875c5a Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Tue, 2 Sep 2014 14:33:55 -0600 Subject: [PATCH] istream::operator bool() is explicit in C++11, use git diff --- src/RageUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RageUtil.cpp b/src/RageUtil.cpp index 872734c1f4..8255f9e96d 100644 --- a/src/RageUtil.cpp +++ b/src/RageUtil.cpp @@ -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 )