mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-19 08:07:36 +08:00
Disable SFINAE for versions of gcc older than 4.8
This commit is contained in:
parent
73b8e719ae
commit
0af63493fd
@ -26,9 +26,18 @@
|
|||||||
* void foo(){}
|
* void foo(){}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// SFINAE requires variadic templates
|
||||||
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
#ifdef EIGEN_HAS_VARIADIC_TEMPLATES
|
||||||
|
// SFINAE doesn't work for gcc <= 4.7
|
||||||
|
#ifdef EIGEN_COMP_GNUC
|
||||||
|
#if EIGEN_GNUC_AT_LEAST(4,8)
|
||||||
#define EIGEN_HAS_SFINAE
|
#define EIGEN_HAS_SFINAE
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define EIGEN_HAS_SFINAE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \
|
#define EIGEN_SFINAE_ENABLE_IF( __condition__ ) \
|
||||||
typename internal::enable_if< ( __condition__ ) , int >::type = 0
|
typename internal::enable_if< ( __condition__ ) , int >::type = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user