Don't turn on const expressions when compiling with gcc >= 4.8 unless the -std=c++11 option has been used

This commit is contained in:
Benoit Steiner 2016-04-29 15:20:59 -07:00
parent c07404f6a1
commit 46bcb70969

View File

@ -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