Fix determination of EIGEN_HAS_TYPE_TRAITS

This commit is contained in:
Gael Guennebaud 2018-07-19 18:47:18 +02:00
parent 5e5987996f
commit 2ca2592009

View File

@ -542,7 +542,7 @@
// Does the compiler support type_traits?
#ifndef EIGEN_HAS_TYPE_TRAITS
#if EIGEN_MAX_CPP_VER>=11 && (EIGEN_HAS_CXX11 || EIGEN_COMP_MSVC >= 1700) \
&& (!EIGEN_COMP_GNUC || EIGEN_GNUC_AT_LEAST(5, 1))
&& ((!EIGEN_COMP_GNUC_STRICT) || 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_INCLUDE_TYPE_TRAITS