clang provides __has_feature(is_enum) (but not <type_traits>) in C++03 mode

This commit is contained in:
Christoph Hertzberg 2017-09-14 19:26:03 +02:00
parent 0c9ad2f525
commit 23f8b00bc8

View File

@ -412,7 +412,7 @@
// Does the compiler support type_trais?
#ifndef EIGEN_HAS_TYPE_TRAITS
#if EIGEN_MAX_CPP_VER>=11 && (EIGEN_HAS_CXX11 || __has_feature(is_enum) || EIGEN_COMP_MSVC >= 1700)
#if EIGEN_MAX_CPP_VER>=11 && (EIGEN_HAS_CXX11 || EIGEN_COMP_MSVC >= 1700)
#define EIGEN_HAS_TYPE_TRAITS 1
#define EIGEN_INCLUDE_TYPE_TRAITS
#else