diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-10-26 15:53:13 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-10-26 15:53:13 +0200 |
commit | 97feea9d39ccaf298082cd537e85c311bf354010 (patch) | |
tree | b4aa92aca7f07f4241be23be22d549cb67bc4858 /Eigen | |
parent | ca6a2a524832e051b64a1545a91220f9dc9887cb (diff) |
add a generic EIGEN_HAS_CXX11
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index ce715716c..00aeb858d 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -356,6 +356,13 @@ #define EIGEN_MAX_CPP_VER 99 #endif +#if EIGEN_MAX_CPP_VER>=11 && defined(__cplusplus) && (__cplusplus >= 201103L) +#define EIGEN_HAS_CXX11 1 +#else +#define EIGEN_HAS_CXX11 0 +#endif + + // Do we support r-value references? #ifndef EIGEN_HAS_RVALUE_REFERENCES #if EIGEN_MAX_CPP_VER>=11 && \ |