refactor splitter

This commit is contained in:
ado
2021-01-17 14:53:07 +01:00
parent 263dba7626
commit 024e5d3810
4 changed files with 57 additions and 62 deletions

View File

@@ -33,6 +33,7 @@ std::enable_if_t<std::is_floating_point_v<T>, T> pow10(int n) {
return ret;
}
// TODO not working with large number of digits
template <typename T>
std::enable_if_t<std::is_floating_point_v<T>, std::optional<T>> to_num(
const char* begin, const char* const end) {