🚨 fix warnings

This commit is contained in:
Niels Lohmann 2019-07-02 21:06:42 +02:00
parent 346e9813c5
commit 947656544d
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
14 changed files with 406 additions and 329 deletions

View file

@ -819,21 +819,18 @@ class lexer
}
JSON_HEDLEY_NON_NULL(2)
JSON_HEDLEY_CONST
static void strtof(float& f, const char* str, char** endptr) noexcept
{
f = std::strtof(str, endptr);
}
JSON_HEDLEY_NON_NULL(2)
JSON_HEDLEY_CONST
static void strtof(double& f, const char* str, char** endptr) noexcept
{
f = std::strtod(str, endptr);
}
JSON_HEDLEY_NON_NULL(2)
JSON_HEDLEY_CONST
static void strtof(long double& f, const char* str, char** endptr) noexcept
{
f = std::strtold(str, endptr);