lefticus / constexpr_all_the_things

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON parser strips leading zeros after decimal point

martin-schulze-vireso opened this issue · comments

The following testcase will fail:

constexpr auto number_val = JSON::number_parser()("0.0625"sv);
static_assert(number_val && number_val->first == 0.0625);

Parsed value is 0.625