Disable type traits for stdlibc++ <= 4.9.3

This commit is contained in:
Eugene Zhulenev 2018-07-20 10:11:44 -07:00
parent de70671937
commit 2bf864f1eb

View File

@ -542,8 +542,8 @@
// 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_STRICT) || EIGEN_GNUC_AT_LEAST(5, 1))
// ^^ Full support of type traits was added only to GCC 5.1.0.
&& ((!EIGEN_COMP_GNUC_STRICT) || EIGEN_GNUC_AT_LEAST(5, 1)) \ // Full support of type traits was added only to GCC 5.1.0.
&& ((!defined(__GLIBCXX__)) || __GLIBCXX__ > 20150626) // The last release of 4.x libstdc++
#define EIGEN_HAS_TYPE_TRAITS 1
#define EIGEN_INCLUDE_TYPE_TRAITS
#else