Functional cast of stream to bool in ParseScalar

This commit is contained in:
Eryn Wells 2014-07-25 08:56:01 -07:00
parent 000b8879e2
commit f999dcd0e7

View file

@ -242,7 +242,7 @@ ParseScalar(const std::string& scalar,
T& value) T& value)
{ {
std::stringstream s(scalar); std::stringstream s(scalar);
return (bool)(s >> value); return bool(s >> value);
} }
} /* namespace yaml */ } /* namespace yaml */