Remove static assert that only works with C++17 or greater

This commit is contained in:
Matt Borland
2023-04-20 13:38:54 +02:00
parent 8dbdf1935e
commit 2c8d787dd4

View File

@@ -2013,7 +2013,8 @@ struct impl : private FloatTraits, private FloatTraits::format
}
else
{
static_assert(std::is_same<format, ieee754_binary64>::value, "Must be a double type");
// Static assertion does not work unless if constexpr is supported
// static_assert(std::is_same<format, ieee754_binary64>::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,