diff options
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index f1f7c3082..d187257a6 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -410,7 +410,9 @@ #endif // Does the compiler support const expressions? -#if (defined(__cplusplus) && __cplusplus >= 201402L) || \ +#ifdef __CUDACC__ + // Const expressions are not supported regardless of what host compiler is used +#elif (defined(__cplusplus) && __cplusplus >= 201402L) || \ EIGEN_GNUC_AT_LEAST(4,9) #define EIGEN_HAS_CONSTEXPR 1 #endif |