diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-11-11 15:04:58 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-11-11 15:04:58 -0800 |
commit | 99f4778506770d601ffff7b3ca0510585854e74c (patch) | |
tree | d884ff297dc41a181bb41be8df509d7534c7a61b /unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h | |
parent | 5cb18e5b5eac0fa18cd91bee117696540d0a063e (diff) |
Disable SFINAE when compiling with nvcc
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h b/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h index 939de5f11..8ed71f838 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h @@ -27,6 +27,7 @@ */ // SFINAE requires variadic templates +#ifndef __CUDACC__ #ifdef EIGEN_HAS_VARIADIC_TEMPLATES // SFINAE doesn't work for gcc <= 4.7 #ifdef EIGEN_COMP_GNUC @@ -36,7 +37,7 @@ #else #define EIGEN_HAS_SFINAE #endif - +#endif #endif #define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \ |