Added the EIGEN_HAS_CONSTEXPR define

Gate the tensor index list code based on the value of EIGEN_HAS_CONSTEXPR
This commit is contained in:
Benoit Steiner
2015-02-06 02:51:59 -08:00
parent f64045a060
commit dcb2a8b184
5 changed files with 16 additions and 6 deletions

View File

@@ -133,6 +133,12 @@
#define EIGEN_HAS_VARIADIC_TEMPLATES 1
#endif
// Does the compiler support const expressions?
#if (defined(__plusplus) && __cplusplus >= 201402L) || \
EIGEN_GNUC_AT_LEAST(4,9)
#define EIGEN_HAS_CONSTEXPR 1
#endif
/** Allows to disable some optimizations which might affect the accuracy of the result.
* Such optimization are enabled by default, and set EIGEN_FAST_MATH to 0 to disable them.
* They currently include: