Merge pull request #3778 from akva2/fix_boost_version_check

fixed: adjust boost version check
This commit is contained in:
Bård Skaflestad
2023-11-17 14:16:52 +01:00
committed by GitHub

View File

@@ -101,7 +101,7 @@ void testAllComponents()
template<class Scalar>
bool close_at_tolerance(Scalar n1, Scalar n2, Scalar tolerance)
{
#if BOOST_VERSION / 100000 == 1 && BOOST_VERSION / 100 % 1000 < 71
#if BOOST_VERSION / 100000 == 1 && BOOST_VERSION / 100 % 1000 < 64
auto comp = boost::test_tools::close_at_tolerance<Scalar>(boost::test_tools::percent_tolerance_t<Scalar>(tolerance*100.0));
#else
auto comp = boost::math::fpc::close_at_tolerance<Scalar>(tolerance);