diff --git a/include/boost/charconv/detail/dragonbox.hpp b/include/boost/charconv/detail/dragonbox.hpp index f00676c..5ade734 100644 --- a/include/boost/charconv/detail/dragonbox.hpp +++ b/include/boost/charconv/detail/dragonbox.hpp @@ -2013,7 +2013,8 @@ struct impl : private FloatTraits, private FloatTraits::format } else { - static_assert(std::is_same::value, "Must be a double type"); + // Static assertion does not work unless if constexpr is supported + // static_assert(std::is_same::value, "Must be a double type"); // Divide by 10^8 and reduce to 32-bits if divisible. // Since ret_value.significand <= (2^53 * 1000 - 1) / 1000 < 10^16,