Skip to content

Commit

Permalink
include boost/cstdfloat.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanelandt committed Aug 31, 2023
1 parent 3957093 commit 6d27f3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 1 addition & 7 deletions include/boost/math/tools/ieee754_linear.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <type_traits>

#include <boost/math/tools/config.hpp> // For BOOST_MATH_FLOAT128_TYPE

#include <boost/cstdfloat.hpp> // For numeric_limits support for 128 bit floats

namespace boost {
namespace math {
Expand Down Expand Up @@ -96,12 +96,6 @@ namespace ieee754_linear {
//
template <typename T, typename U>
class Layout_IEEE754Linear {
#if defined(BOOST_HAS_INT128) && defined(BOOST_HAS_FLOAT128)
static_assert(std::numeric_limits<T>::is_iec559 || std::is_same<T, BOOST_MATH_FLOAT128_TYPE>::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 <boost/multiprecision/float128.hpp>");
#endif
static_assert(std::numeric_limits<T>::is_iec559, "Type must be IEEE 754 floating point.");
static_assert(std::is_unsigned<U>::value, "U must be an unsigned integer type.");
static_assert(sizeof(T) == sizeof(U), "Type and uint size must be the same.");
Expand Down
4 changes: 0 additions & 4 deletions test/compile_test/std_real_concept_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@

#include "instantiate.hpp"

#ifdef BOOST_HAS_FLOAT128
#include <boost/multiprecision/float128.hpp>
#endif

//
// The purpose of this test is to verify that our code compiles
// cleanly with a type whose std lib functions are in namespace
Expand Down

0 comments on commit 6d27f3a

Please sign in to comment.