Core/DataStores: Add const to DBStorageIterator dereference operators

This commit is contained in:
Shauren
2022-11-27 22:16:32 +01:00
parent 2cf5db8a8e
commit 79ca6df27d

View File

@@ -41,8 +41,8 @@ public:
}
}
T const* operator->() { return _index[_pos]; }
T const* operator*() { return _index[_pos]; }
T const* operator->() const { return _index[_pos]; }
T const* operator*() const { return _index[_pos]; }
bool operator==(DBStorageIterator const& right) const { /*ASSERT(_index == right._index, "Iterator belongs to a different container")*/ return _pos == right._pos; }
bool operator!=(DBStorageIterator const& right) const { return !(*this == right); }