aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2018-07-20 10:11:44 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2018-07-20 10:11:44 -0700
commit2bf864f1eb1b2497d28747c7f77ec3e2f1e8d9d2 (patch)
treee7fbc4f7bac6c3a57ee6a52bef686c116503a911 /Eigen/src/Core/util/Macros.h
parentde70671937827dd61a63d2432e0bea4ca7b00300 (diff)
Disable type traits for stdlibc++ <= 4.9.3
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r--Eigen/src/Core/util/Macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index ac3805732..a1ac9162b 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -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