Disable SFINAE for versions of gcc older than 4.8

This commit is contained in:
Benoit Steiner 2015-10-20 11:53:30 -07:00
parent 73b8e719ae
commit 0af63493fd

View File

@ -26,8 +26,17 @@
* void foo(){} * void foo(){}
*/ */
// SFINAE requires variadic templates
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES #ifdef EIGEN_HAS_VARIADIC_TEMPLATES
#define EIGEN_HAS_SFINAE // SFINAE doesn't work for gcc <= 4.7
#ifdef EIGEN_COMP_GNUC
#if EIGEN_GNUC_AT_LEAST(4,8)
#define EIGEN_HAS_SFINAE
#endif
#else
#define EIGEN_HAS_SFINAE
#endif
#endif #endif
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \ #define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \