From 772efdb32b9c9901588adfa457e5d6763dc7c5cb Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 2 Nov 2017 11:02:37 +0000 Subject: [PATCH] Math.Quaternion: Add workarounds for older msvc versions. --- test/quaternion_test.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/quaternion_test.cpp b/test/quaternion_test.cpp index 2a5d3e393..14468cbf4 100644 --- a/test/quaternion_test.cpp +++ b/test/quaternion_test.cpp @@ -41,12 +41,19 @@ DEFINE_TYPE_NAME(long double); DEFINE_TYPE_NAME(boost::multiprecision::cpp_bin_float_quad); DEFINE_TYPE_NAME(boost::multiprecision::number >); - -#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -typedef boost::mpl::list > > test_types; +#if BOOST_WORKAROUND(BOOST_MSVC, < 1900) +# define CPP_DEC_FLOAT_TEST #else -typedef boost::mpl::list > > test_types; +# define CPP_DEC_FLOAT_TEST , boost::multiprecision::number > #endif +#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS +# define LD_TEST , long double +#else +# define LD_TEST +#endif + + +typedef boost::mpl::list test_types; // Apple GCC 4.0 uses the "double double" format for its long double, // which means that epsilon is VERY small but useless for