Revert StlIterators edit from "Fix undefined behavior..."

This commit is contained in:
Jeremy Nimmer 2023-02-01 20:01:36 +00:00 committed by Rasmus Munk Larsen
parent fd2fd48703
commit 13a1f25da9

View File

@ -198,7 +198,6 @@ public:
pointer_based_stl_iterator() EIGEN_NO_THROW : m_ptr(0) {}
pointer_based_stl_iterator(XprType& xpr, Index index) EIGEN_NO_THROW : m_incr(xpr.innerStride())
{
eigen_assert(xpr.data() != nullptr || index == 0 || m_incr.value() == 0);
m_ptr = xpr.data() + index * m_incr.value();
}