aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-29 15:20:59 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-29 15:20:59 -0700
commit46bcb70969829f243eaae0360b70859e68450dee (patch)
tree2f77d940e3049d52dd8cc34fd8d189ddc9d7df2d /Eigen/src
parentc07404f6a1324f515841695666ca91af70f8b8a5 (diff)
Don't turn on const expressions when compiling with gcc >= 4.8 unless the -std=c++11 option has been used
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/util/Macros.h2
1 files changed, 1 insertions, 1 deletions
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