Fix STL feature detection for c++20.

This commit is contained in:
Antonio Sánchez
2025-02-28 19:52:37 +00:00
committed by Rasmus Munk Larsen
parent 179a49684a
commit be5147b090
3 changed files with 16 additions and 12 deletions

View File

@@ -325,7 +325,7 @@ class pointer_based_stl_iterator {
public:
typedef Index difference_type;
typedef typename XprType::Scalar value_type;
#if EIGEN_CPLUSPLUS >= 202002L
#if EIGEN_COMP_CXXVER >= 20 && defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 202002L
typedef std::conditional_t<XprType::InnerStrideAtCompileTime == 1, std::contiguous_iterator_tag,
std::random_access_iterator_tag>
iterator_category;