diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 0c69029..a9a31fb 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -738,9 +738,8 @@ template static constexpr uint64_t int_cmp_zeros() { template static constexpr int int_cmp_len() { return sizeof(uint64_t) / sizeof(UC); } -template static constexpr UC const *str_const_nan() { - return nullptr; -} + +template constexpr UC const *str_const_nan(); template <> constexpr char const *str_const_nan() { return "nan"; } template <> constexpr wchar_t const *str_const_nan() { return L"nan"; } template <> constexpr char16_t const *str_const_nan() { @@ -749,9 +748,8 @@ template <> constexpr char16_t const *str_const_nan() { template <> constexpr char32_t const *str_const_nan() { return U"nan"; } -template static constexpr UC const *str_const_inf() { - return nullptr; -} + +template constexpr UC const *str_const_inf(); template <> constexpr char const *str_const_inf() { return "infinity"; } template <> constexpr wchar_t const *str_const_inf() { return L"infinity";