From 9883108f3a676d1de803da58383e6c09eb1a439a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Schl=C3=BCter?= Date: Tue, 8 Mar 2022 17:43:11 +0000 Subject: [PATCH] Remove copy_bool workaround for gcc 4.3 --- Eigen/src/Core/util/Macros.h | 5 ----- test/main.h | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 1fcb902fe..dea247d2a 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -872,11 +872,6 @@ #define eigen_plain_assert(x) #endif #else - namespace Eigen { - namespace internal { - inline bool copy_bool(bool b) { return b; } - } - } #define eigen_plain_assert(x) assert(x) #endif diff --git a/test/main.h b/test/main.h index b1c09c766..87ffa8795 100644 --- a/test/main.h +++ b/test/main.h @@ -302,9 +302,8 @@ namespace Eigen #endif //EIGEN_EXCEPTIONS #elif !defined(__CUDACC__) && !defined(__HIPCC__) && !defined(SYCL_DEVICE_ONLY) // EIGEN_DEBUG_ASSERTS - // see bug 89. The copy_bool here is working around a bug in gcc <= 4.3 #define eigen_assert(a) \ - if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) )\ + if( (!(a)) && (!no_more_assert) ) \ { \ Eigen::no_more_assert = true; \ if(report_on_cerr_on_assert_failure) \