From 8a89ba927564d9e6209495da7729d8e93f381dec Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Sat, 10 Aug 2013 19:11:03 +0200 Subject: [PATCH] Added alternative C++11 detection. --- Eigen/src/Core/util/Macros.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 2a1ef296e..7e5289cdd 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -104,8 +104,9 @@ // Do we support r-value references? #if (__has_feature(cxx_rvalue_references) || \ + (defined(__cplusplus) && __cplusplus >= 201103L) || \ defined(__GXX_EXPERIMENTAL_CXX0X__) || \ - (defined(_MSC_VER) && _MSC_VER >= 1600)) + (defined(_MSC_VER) && _MSC_VER >= 1600)) #define EIGEN_HAVE_RVALUE_REFERENCES #endif