Clarify calculation precedence for >> and ?

This commit is contained in:
Luis Díaz Más 2018-11-06 18:59:22 +01:00
parent 2d1e1fe6ef
commit cd09cda6ff

View File

@ -546,7 +546,7 @@ namespace Exiv2 {
{
std::istringstream is(s);
T tmp;
ok = is >> tmp ? true : false;
ok = (is >> tmp) ? true : false;
std::string rest;
is >> std::skipws >> rest;
if (!rest.empty()) ok = false;