From e55182ac09885d7558adf75e9e230b051a721c18 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Fri, 18 Sep 2020 17:38:58 +0000 Subject: Get rid of initialization logic for blueNorm by making the computed constants static const or constexpr. Move macro definition EIGEN_CONSTEXPR to Core and make all methods in NumTraits constexpr when EIGEN_HASH_CONSTEXPR is 1. --- test/boostmultiprec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/boostmultiprec.cpp') diff --git a/test/boostmultiprec.cpp b/test/boostmultiprec.cpp index 1d1441ae2..9acbb5a11 100644 --- a/test/boostmultiprec.cpp +++ b/test/boostmultiprec.cpp @@ -78,7 +78,7 @@ typedef mp::number, mp::et_on> Real; namespace Eigen { template<> struct NumTraits : GenericNumTraits { - static inline Real dummy_precision() { return 1e-50; } + static EIGEN_CONSTEXPR inline Real dummy_precision() { return 1e-50; } }; template @@ -205,4 +205,3 @@ EIGEN_DECLARE_TEST(boostmultiprec) CALL_SUBTEST_11(( test_simplicial_cholesky_T() )); } - -- cgit v1.2.3