aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util/Macros.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2017-01-16 16:13:37 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2017-01-16 16:13:37 +0100
commit6e97698161275db750868afb99f405cdb849f412 (patch)
tree6856e43ea0150d43b07553fe15498d884b65a4eb /Eigen/src/Core/util/Macros.h
parent752bd92ba53de344eba66b8cec4480f9d3207025 (diff)
Introduce a EIGEN_HAS_CXX14 macro
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r--Eigen/src/Core/util/Macros.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 14addd8fb..7462dc5cf 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -362,6 +362,11 @@
#define EIGEN_HAS_CXX11 0
#endif
+#if EIGEN_MAX_CPP_VER>=14 && (defined(__cplusplus) && (__cplusplus > 201103L) || EIGEN_COMP_MSVC >= 1900)
+#define EIGEN_HAS_CXX14 1
+#else
+#define EIGEN_HAS_CXX14 0
+#endif
// Do we support r-value references?
#ifndef EIGEN_HAS_RVALUE_REFERENCES