mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-18 19:11:30 +08:00
The 'CompressedStorageIterator<>' needs to satisfy the RandomAccessIterator
(cherry picked from commit 5c1029be1a539c63053398f7fe79966bfd57bf80)
This commit is contained in:
parent
63b5f63a6a
commit
b60f763ec0
@ -480,6 +480,7 @@ class CompressedStorageIterator {
|
||||
return *this;
|
||||
}
|
||||
inline reference operator*() const { return reference(m_data.keyPtr() + m_index, m_data.valuePtr() + m_index); }
|
||||
inline reference operator[](int index) { return *(*this + index); }
|
||||
|
||||
#define MAKE_COMP(OP) \
|
||||
inline bool operator OP(const CompressedStorageIterator& other) const { return m_index OP other.m_index; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user