mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-05 17:50:26 +08:00
Disable SFINAE for versions of gcc older than 4.8
This commit is contained in:
parent
73b8e719ae
commit
0af63493fd
@ -26,8 +26,17 @@
|
||||
* void foo(){}
|
||||
*/
|
||||
|
||||
// SFINAE requires 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
|
||||
|
||||
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \
|
||||
|
Loading…
Reference in New Issue
Block a user