mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-10-19 03:21: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;
|
return *this;
|
||||||
}
|
}
|
||||||
inline reference operator*() const { return reference(m_data.keyPtr() + m_index, m_data.valuePtr() + m_index); }
|
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) \
|
#define MAKE_COMP(OP) \
|
||||||
inline bool operator OP(const CompressedStorageIterator& other) const { return m_index OP other.m_index; }
|
inline bool operator OP(const CompressedStorageIterator& other) const { return m_index OP other.m_index; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user