Syntax and exclude test very old compiler

This commit is contained in:
ckormanyos
2025-08-30 21:29:53 +02:00
parent bb4911ceb3
commit ac1b9545e7
2 changed files with 12 additions and 6 deletions
@@ -1029,8 +1029,7 @@ class cpp_double_fp_backend
cpp_df_qf_detail::ccmath::unsafe::ldexp
#endif
(
float_type { 1 },
int { 3 - my_digits }
float_type { 1 }, int { 3 - my_digits }
)
};
@@ -2772,14 +2771,18 @@ private:
using digits2_type = digits2<my_multiprecision_backend_type::my_digits>;
static constexpr auto use_full_precision() noexcept -> bool
{
return ((digits2_type::value <= precision_type::value) || (precision_type::value <= 0));
}
public:
using precision_type = typename Policy::precision_type;
using type =
typename std::conditional<
((digits2_type::value <= precision_type::value) || (precision_type::value <= 0)),
digits2_type, // This is the default case: Use full precision for RealType.
precision_type>::type; // Here we find (and use) user-customized precision.
typename std::conditional<use_full_precision(),
digits2_type, // This is the default case: Use full precision for FloatingPointType.
precision_type>::type; // Here we find (and use) user-customized precision.
};
} } } // namespace boost::math::policies
+3
View File
@@ -510,12 +510,15 @@ int main()
test<boost::multiprecision::float128>();
#endif
#ifdef TEST_CPP_DOUBLE_FLOAT
#if (defined(BOOST_GCC) && !defined(BOOST_CLANG) && (BOOST_GCC < 80000))
#else
test<boost::multiprecision::cpp_double_float>();
test<boost::multiprecision::cpp_double_double>();
test<boost::multiprecision::cpp_double_long_double>();
#if defined(BOOST_MP_CPP_DOUBLE_FP_HAS_FLOAT128)
test<boost::multiprecision::cpp_double_float128>();
#endif
#endif
#endif
return boost::report_errors();