From 99f4778506770d601ffff7b3ca0510585854e74c Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 11 Nov 2015 15:04:58 -0800 Subject: [PATCH] Disable SFINAE when compiling with nvcc --- unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__ ) \