mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
clang provides __has_feature(is_enum) (but not <type_traits>) in C++03 mode
This commit is contained in:
parent
0c9ad2f525
commit
23f8b00bc8
@ -412,7 +412,7 @@
|
|||||||
|
|
||||||
// Does the compiler support type_trais?
|
// Does the compiler support type_trais?
|
||||||
#ifndef EIGEN_HAS_TYPE_TRAITS
|
#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_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