Disable SFINAE when compiling with nvcc

This commit is contained in:
Benoit Steiner 2015-11-11 15:04:58 -08:00
parent 5cb18e5b5e
commit 99f4778506

View File

@ -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__ ) \