mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
manually checked modified files for errors, but not committing .clang-format due to the following warning: >>> Setting `QualifierAlignment` to something other than `Leave`, COULD lead to incorrect code formatting due to incorrect decisions made due to clang-formats lack of complete semantic information. As such extra care should be taken to review code changes made by the use of this option.
11 lines
258 B
C++
11 lines
258 B
C++
#include "fast_float/fast_float.h"
|
|
|
|
double get2(char const *input) {
|
|
double result_value;
|
|
auto result =
|
|
fast_float::from_chars(input, input + strlen(input), result_value);
|
|
if (result.ec != std::errc()) {
|
|
return 2;
|
|
}
|
|
return result_value;
|
|
} |