From 5328cd62b37028e183208dfed295cafaedd28750 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Wed, 20 May 2020 16:01:41 +0200 Subject: Guard usage of decltype since it's a C++11 feature This fixes https://gitlab.com/libeigen/eigen/-/issues/1897 --- test/indexed_view.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/indexed_view.cpp') diff --git a/test/indexed_view.cpp b/test/indexed_view.cpp index 3ac6706ef..231f44393 100644 --- a/test/indexed_view.cpp +++ b/test/indexed_view.cpp @@ -439,11 +439,13 @@ void check_indexed_view() VERIFY( MATCH( A(all,1)(1), "101")); } +#if EIGEN_HAS_CXX11 //Bug IndexView with a single static row should be RowMajor: { // A(1, seq(0,2,1)).cwiseAbs().colwise().replicate(2).eval(); STATIC_CHECK(( (internal::evaluator::Flags & RowMajorBit) == RowMajorBit )); } +#endif } -- cgit v1.2.3