comment
parent
83729b83d0
commit
db158fcff3
|
@ -58,6 +58,7 @@ namespace blt::parse
|
||||||
T get(std::string_view str)
|
T get(std::string_view str)
|
||||||
{
|
{
|
||||||
T x;
|
T x;
|
||||||
|
// TODO: GCC version. C++17 supports from_chars but GCC8.5 doesn't have floating point.
|
||||||
#if __cplusplus >= BLT_CPP20
|
#if __cplusplus >= BLT_CPP20
|
||||||
const auto [ptr, ec] = std::from_chars(str.data(), str.data() + str.size(), x);
|
const auto [ptr, ec] = std::from_chars(str.data(), str.data() + str.size(), x);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue