From 46bcb70969829f243eaae0360b70859e68450dee Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 29 Apr 2016 15:20:59 -0700 Subject: [PATCH] Don't turn on const expressions when compiling with gcc >= 4.8 unless the -std=c++11 option has been used --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index de1265af3..69863d826 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -375,7 +375,7 @@ #define EIGEN_HAS_CONSTEXPR 1 #endif #elif __has_feature(cxx_relaxed_constexpr) || (defined(__cplusplus) && __cplusplus >= 201402L) || \ - EIGEN_GNUC_AT_LEAST(4,8) + (EIGEN_GNUC_AT_LEAST(4,8) && (__cplusplus > 199711L)) #define EIGEN_HAS_CONSTEXPR 1 #endif