Errors when compiling test/indexed_view
c++ 11 keyword "decltype" leads the following compilation error when compiling test "check_indexed_view" using default compile configuration that turns the EIGEN_TEST_CXX11
OFF. It may need to check the C++ version before "STATIC_CHECK(( (internal::evaluator<decltype( A(1,seq(0,2,1)) )>::Flags & RowMajorBit) == RowMajorBit ));"
/usr/chenkan/eigen/test/indexed_view.cpp: In function ‘void check_indexed_view()’: /usr/chenkan/eigen/test/indexed_view.cpp:445:51: error: ‘A’ cannot appear in a constant-expression STATIC_CHECK(( (internal::evaluator<decltype( A(1,seq(0,2,1)) )>::Flags & RowMajorBit) == RowMajorBit ));