Functional cast of stream to bool in ParseScalar
This commit is contained in:
parent
000b8879e2
commit
f999dcd0e7
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ ParseScalar(const std::string& scalar,
|
|||
T& value)
|
||||
{
|
||||
std::stringstream s(scalar);
|
||||
return (bool)(s >> value);
|
||||
return bool(s >> value);
|
||||
}
|
||||
|
||||
} /* namespace yaml */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue