mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-10-29 10:27:15 +08:00
auto answer = fast_float::parse_number_string<true>(
f.data(), f.data() + f.size(),
fast_float::parse_options(
fast_float::chars_format::json |
fast_float::chars_format::allow_leading_plus)); // should be ignored
if (!answer.invalid) {
std::cerr << "json parse accepted invalid json " << f << std::endl;
return EXIT_FAILURE;
}
|
||
|---|---|---|
| .. | ||
| fast_float | ||