From 2c8d787dd48a5ac4fbabe27bc45806a113e9f8f1 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Thu, 20 Apr 2023 13:38:54 +0200 Subject: [PATCH] Remove static assert that only works with C++17 or greater --- include/boost/charconv/detail/dragonbox.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,