Depend on the more extensive support for constexpr in clang:

http://clang.llvm.org/docs/LanguageExtensions.html#c-1y-relaxed-constexpr
This commit is contained in:
Rasmus Munk Larsen 2016-04-27 14:59:11 -07:00
parent 1a325ef71c
commit 09b9e951e3

View File

@ -374,7 +374,7 @@
#if __cplusplus > 199711L && defined(__CUDACC_VER__) && (EIGEN_COMP_CLANG || __CUDACC_VER__ >= 70500)
#define EIGEN_HAS_CONSTEXPR 1
#endif
#elif __has_feature(cxx_constexpr) || (defined(__cplusplus) && __cplusplus >= 201402L) || \
#elif __has_feature(cxx_relaxed_constexpr) || (defined(__cplusplus) && __cplusplus >= 201402L) || \
EIGEN_GNUC_AT_LEAST(4,8)
#define EIGEN_HAS_CONSTEXPR 1
#endif