mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-16 15:19:54 +08:00
cleaning.
This commit is contained in:
parent
bfcff49c83
commit
c526899951
@ -307,13 +307,13 @@ bool check_file(std::string file_name) {
|
|||||||
#ifdef __STDCPP_FLOAT16_T__
|
#ifdef __STDCPP_FLOAT16_T__
|
||||||
// Parse as 16-bit float
|
// Parse as 16-bit float
|
||||||
std::float16_t parsed_16{};
|
std::float16_t parsed_16{};
|
||||||
// auto fast_float_r16 =
|
auto fast_float_r16 =
|
||||||
fast_float::from_chars(number_string, end_of_string, parsed_16);
|
fast_float::from_chars(number_string, end_of_string, parsed_16);
|
||||||
// if (fast_float_r16.ec != std::errc() &&
|
if (fast_float_r16.ec != std::errc() &&
|
||||||
// fast_float_r16.ec != std::errc::result_out_of_range) {
|
fast_float_r16.ec != std::errc::result_out_of_range) {
|
||||||
// std::cerr << "16-bit fast_float parsing failure for: " + str +
|
std::cerr << "16-bit fast_float parsing failure for: " + str + "\n";
|
||||||
// "\n"; return false;
|
return false;
|
||||||
// }
|
}
|
||||||
#endif
|
#endif
|
||||||
// Parse as 32-bit float
|
// Parse as 32-bit float
|
||||||
float parsed_32;
|
float parsed_32;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user