Merge pull request #8415 from jordan-woyak/try-parse

StringUtil: Require TryParse of float types to use the entire string.
This commit is contained in:
Mat M 2019-10-20 07:29:20 -04:00 committed by GitHub
commit d0114ea61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ static bool TryParse(const std::string& str, N* const output)
iss.imbue(std::locale("C")); iss.imbue(std::locale("C"));
N tmp; N tmp;
if (iss >> tmp) if (iss >> tmp && iss.eof())
{ {
*output = tmp; *output = tmp;
return true; return true;