From ed839c58519a2ecc28fb495d10d1be49d15d66ee Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sun, 20 Nov 2016 10:34:49 -0800 Subject: [PATCH] Enable the use of constant expressions with clang >= 3.6 --- Eigen/src/Core/util/Macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index d9387cd82..40e283bad 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -418,7 +418,8 @@ #define EIGEN_HAS_CONSTEXPR 1 #endif #elif EIGEN_MAX_CPP_VER>=14 && (__has_feature(cxx_relaxed_constexpr) || (defined(__cplusplus) && __cplusplus >= 201402L) || \ - (EIGEN_GNUC_AT_LEAST(4,8) && (__cplusplus > 199711L))) + (EIGEN_GNUC_AT_LEAST(4,8) && (__cplusplus > 199711L)) || \ + (EIGEN_COMP_CLANG >= 306 && (__cplusplus > 199711L))) #define EIGEN_HAS_CONSTEXPR 1 #endif