diff --git a/include/boost/math/tools/ieee754_linear.hpp b/include/boost/math/tools/ieee754_linear.hpp index 0d0ceb9744..7ef03d21c2 100644 --- a/include/boost/math/tools/ieee754_linear.hpp +++ b/include/boost/math/tools/ieee754_linear.hpp @@ -13,7 +13,7 @@ #include #include // For BOOST_MATH_FLOAT128_TYPE - +#include // For numeric_limits support for 128 bit floats namespace boost { namespace math { @@ -96,12 +96,6 @@ namespace ieee754_linear { // template class Layout_IEEE754Linear { -#if defined(BOOST_HAS_INT128) && defined(BOOST_HAS_FLOAT128) - static_assert(std::numeric_limits::is_iec559 || std::is_same::value, - "Attempting to compile Layout_IEEE754Linear with 128 bit floating point type without IEEE 754 " - "support for this type. Consider including a header file containing the required " - "`std::numeric_limits` specializations such as: #include "); -#endif static_assert(std::numeric_limits::is_iec559, "Type must be IEEE 754 floating point."); static_assert(std::is_unsigned::value, "U must be an unsigned integer type."); static_assert(sizeof(T) == sizeof(U), "Type and uint size must be the same."); diff --git a/test/compile_test/std_real_concept_check.cpp b/test/compile_test/std_real_concept_check.cpp index fe71493a53..ee4362374b 100644 --- a/test/compile_test/std_real_concept_check.cpp +++ b/test/compile_test/std_real_concept_check.cpp @@ -16,10 +16,6 @@ #include "instantiate.hpp" -#ifdef BOOST_HAS_FLOAT128 -#include -#endif - // // The purpose of this test is to verify that our code compiles // cleanly with a type whose std lib functions are in namespace