mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
Disable SFINAE when compiling with nvcc
This commit is contained in:
parent
5cb18e5b5e
commit
99f4778506
@ -27,6 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// SFINAE requires variadic templates
|
// SFINAE requires variadic templates
|
||||||
|
#ifndef __CUDACC__
|
||||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||||
// SFINAE doesn't work for gcc <= 4.7
|
// SFINAE doesn't work for gcc <= 4.7
|
||||||
#ifdef EIGEN_COMP_GNUC
|
#ifdef EIGEN_COMP_GNUC
|
||||||
@ -36,7 +37,7 @@
|
|||||||
#else
|
#else
|
||||||
#define EIGEN_HAS_SFINAE
|
#define EIGEN_HAS_SFINAE
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \
|
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user