leftibot 6517bb38a7 Fix #378: Replace hand-rolled number parsing with std::from_chars
The custom parse_num floating-point implementation produced slightly
different results from the C++ compiler's own literal parsing (e.g.
1.1e-4 was off by a few ULPs). Replace it with std::from_chars which
is locale-independent and matches compiler precision exactly. Also
migrate integer parsing in buildInt from std::stoll/stoull to
std::from_chars, fix the JSON number parser to pass the full numeric
string to from_chars instead of splitting mantissa/exponent and using
std::pow, and update parse_string to use from_chars for arithmetic types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 18:25:47 -06:00
..
fnv1a.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
hash.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
json_wrap.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
json.hpp Fix #378: Replace hand-rolled number parsing with std::from_chars 2026-04-11 18:25:47 -06:00
quick_flat_map.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
stack_vector.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
static_string.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
utility.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00