From 2ca7c7b6e3d6a8c9e308be177a7b6bbe7f12f4ca Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 18 Feb 2021 18:29:03 +0000 Subject: [PATCH] Fixes for cxx11 changes to dependencies: Make Multiprecision tests depend on and BOOST_NO_CXX11_HDR_TYPE_TRAITS. Use specific Boost.Random headers and not as the latter pulls in some of Boost.Math which has now moved to C++11. --- test/common_factor_test.cpp | 3 ++- test/multiprecision_config.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/common_factor_test.cpp b/test/common_factor_test.cpp index 2d4ade4..9c7eb63 100644 --- a/test/common_factor_test.cpp +++ b/test/common_factor_test.cpp @@ -23,7 +23,8 @@ #include // for boost::mpl::list #include #include -#include +#include +#include #include #include // for std::basic_istream diff --git a/test/multiprecision_config.hpp b/test/multiprecision_config.hpp index d6e977b..afc214b 100644 --- a/test/multiprecision_config.hpp +++ b/test/multiprecision_config.hpp @@ -20,7 +20,7 @@ // as it no longer supports C++03 since 2021. #if !defined(DISABLE_MP_TESTS) && \ (\ - defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || defined(BOOST_NO_CXX11_HDR_ARRAY)\ + defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || defined(BOOST_NO_CXX11_HDR_ARRAY) || defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)\ || defined(BOOST_NO_CXX11_ALLOCATOR) || defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) || defined(BOOST_NO_CXX11_CONSTEXPR)\ || (defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) || BOOST_WORKAROUND(__SUNPRO_CC, < 0x5140)) || defined(BOOST_NO_CXX11_REF_QUALIFIERS) || defined(BOOST_NO_CXX11_HDR_FUNCTIONAL)\ || defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || defined(BOOST_NO_CXX11_USER_DEFINED_LITERALS) || defined(BOOST_NO_CXX11_THREAD_LOCAL)\