mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Made sure that the use const expressions are not enabled when compiling with nvcc even when gcc 4.9 is used as the host compiler.
This commit is contained in:
parent
0dda72316f
commit
d259b719d1
@ -410,7 +410,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Does the compiler support const expressions?
|
// 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)
|
EIGEN_GNUC_AT_LEAST(4,9)
|
||||||
#define EIGEN_HAS_CONSTEXPR 1
|
#define EIGEN_HAS_CONSTEXPR 1
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user