aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-10 19:11:03 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-10 19:11:03 +0200
commit8a89ba927564d9e6209495da7729d8e93f381dec (patch)
treec802dfa208c37154e0a177830c5945075251e197
parent097a105603e61eb32856e9b772e5da155b25ba15 (diff)
Added alternative C++11 detection.
-rw-r--r--Eigen/src/Core/util/Macros.h3
1 files changed, 2 insertions, 1 deletions
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