mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
Add temporary fix for apple/clang issue.
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(test_autodiff_8)
|
||||
|
||||
// This workaround is a temporary fix for Clang on Apple:
|
||||
#if !defined(__clang__) || !defined(__APPLE__) || !defined(__MACH__)
|
||||
BOOST_AUTO_TEST_CASE_TEMPLATE(hermite_hpp, T, all_float_types) {
|
||||
using test_constants = test_constants_t<T>;
|
||||
static constexpr auto m = test_constants::order;
|
||||
@@ -19,7 +21,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(hermite_hpp, T, all_float_types) {
|
||||
BOOST_CHECK(isNearZero(autodiff_v.derivative(0u) - anchor_v));
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
BOOST_AUTO_TEST_CASE_TEMPLATE(heuman_lambda_hpp, T, all_float_types) {
|
||||
using test_constants = test_constants_t<T>;
|
||||
static constexpr auto m = test_constants::order;
|
||||
@@ -130,6 +132,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(jacobi_zeta_hpp, T, all_float_types) {
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(__clang__) || !defined(__APPLE__) || !defined(__MACH__)
|
||||
BOOST_AUTO_TEST_CASE_TEMPLATE(laguerre_hpp, T, all_float_types) {
|
||||
using boost::multiprecision::min;
|
||||
using std::min;
|
||||
@@ -158,7 +161,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(laguerre_hpp, T, all_float_types) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
BOOST_AUTO_TEST_CASE_TEMPLATE(lambert_w_hpp, T, all_float_types) {
|
||||
using boost::math::nextafter;
|
||||
using boost::math::tools::max;
|
||||
|
||||
Reference in New Issue
Block a user