aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-20 10:34:49 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-20 10:34:49 -0800
commited839c58519a2ecc28fb495d10d1be49d15d66ee (patch)
tree48e329a7f26f0b1ce40e01ad49a164ae68d39755 /Eigen
parent6d781e3e52b328710c55d854a97b2e69a3d433cc (diff)
Enable the use of constant expressions with clang >= 3.6
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/util/Macros.h3
1 files changed, 2 insertions, 1 deletions
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