From 962a596d21332ec6901ba4a0787b3435264270c2 Mon Sep 17 00:00:00 2001 From: "Maxiwell S. Garcia" Date: Fri, 22 Oct 2021 12:17:55 -0500 Subject: [PATCH] test: fix boostmutiprec test to compile with older Boost versions Eigen boostmultiprec test redefines a symbol that is already defined inside Boot Math [1]. Boost has fixed it recently [2], but this patch avoids errors if Boost version was less than 1.77. https://github.com/boostorg/math/blob/boost-1.76.0/include/boost/math/policies/policy.hpp#L18 https://github.com/boostorg/math/commit/68307123029676ba5cb316f8dd1d1c98d1fc7b23#diff-c7a8e5911c2e6be4138e1a966d762200f147792ac16ad96fdcc724313d11f839 (cherry picked from commit 99600bd1a6b133f8684800c855e59d4fd22ac23e) --- test/boostmultiprec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/boostmultiprec.cpp b/test/boostmultiprec.cpp index 7c79ded23..e83e97044 100644 --- a/test/boostmultiprec.cpp +++ b/test/boostmultiprec.cpp @@ -74,8 +74,7 @@ #include #include -namespace mp = boost::multiprecision; -typedef mp::number, mp::et_on> Real; +typedef boost::multiprecision::number, boost::multiprecision::et_on> Real; namespace Eigen { template<> struct NumTraits : GenericNumTraits {