mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
bug #1153: Don't rely on __GXX_EXPERIMENTAL_CXX0X__ to detect C++11 support
This commit is contained in:
parent
5eb2790be0
commit
44d4674955
@ -336,7 +336,6 @@
|
|||||||
// Do we support r-value references?
|
// Do we support r-value references?
|
||||||
#if (__has_feature(cxx_rvalue_references) || \
|
#if (__has_feature(cxx_rvalue_references) || \
|
||||||
(defined(__cplusplus) && __cplusplus >= 201103L) || \
|
(defined(__cplusplus) && __cplusplus >= 201103L) || \
|
||||||
defined(__GXX_EXPERIMENTAL_CXX0X__) || \
|
|
||||||
(EIGEN_COMP_MSVC >= 1600))
|
(EIGEN_COMP_MSVC >= 1600))
|
||||||
#define EIGEN_HAVE_RVALUE_REFERENCES
|
#define EIGEN_HAVE_RVALUE_REFERENCES
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#ifndef EIGEN_NO_STATIC_ASSERT
|
#ifndef EIGEN_NO_STATIC_ASSERT
|
||||||
|
|
||||||
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (EIGEN_COMP_MSVC >= 1600)
|
#if __has_feature(cxx_static_assert) || (defined(__cplusplus) && __cplusplus >= 201103L) || (EIGEN_COMP_MSVC >= 1600)
|
||||||
|
|
||||||
// if native static_assert is enabled, let's use it
|
// if native static_assert is enabled, let's use it
|
||||||
#define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
|
#define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user