mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 04:35:57 +08:00
Disable type traits for GCC < 5.1.0
This commit is contained in:
parent
79d4129cce
commit
086ded5c85
@ -541,7 +541,9 @@
|
|||||||
|
|
||||||
// Does the compiler support type_traits?
|
// Does the compiler support type_traits?
|
||||||
#ifndef EIGEN_HAS_TYPE_TRAITS
|
#ifndef EIGEN_HAS_TYPE_TRAITS
|
||||||
#if EIGEN_MAX_CPP_VER>=11 && (EIGEN_HAS_CXX11 || EIGEN_COMP_MSVC >= 1700)
|
#if EIGEN_MAX_CPP_VER>=11 && (EIGEN_HAS_CXX11 || EIGEN_COMP_MSVC >= 1700) \
|
||||||
|
&& (!EIGEN_COMP_GNUC || EIGEN_GNUC_AT_LEAST(5, 1))
|
||||||
|
// ^^ Full support of type traits was added only to GCC 5.1.0.
|
||||||
#define EIGEN_HAS_TYPE_TRAITS 1
|
#define EIGEN_HAS_TYPE_TRAITS 1
|
||||||
#define EIGEN_INCLUDE_TYPE_TRAITS
|
#define EIGEN_INCLUDE_TYPE_TRAITS
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user