Revert "Specialized enable_borrowed_ranges for VectorwiseOp class range iteration"

This reverts merge request !2127
This commit is contained in:
Rasmus Munk Larsen
2026-02-16 02:12:28 -08:00
parent d0654a201b
commit 2b561f9284
4 changed files with 6 additions and 55 deletions

View File

@@ -732,14 +732,4 @@ EIGEN_DEVICE_FUNC inline typename DenseBase<Derived>::RowwiseReturnType DenseBas
} // end namespace Eigen
/* Enable use of VectorwiseOp types inside
* of std::ranges algorithms. */
#if defined(__cpp_lib_ranges) && __cpp_lib_ranges >= 201911L
namespace std {
template <typename VecwiseOp, Eigen::DirectionType Direction>
inline constexpr bool ranges::enable_borrowed_range<Eigen::internal::subvector_stl_iterator<VecwiseOp, Direction>> =
true;
}
#endif
#endif // EIGEN_PARTIAL_REDUX_H