aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/DataStores/DBStorageIterator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/DataStores/DBStorageIterator.h b/src/server/shared/DataStores/DBStorageIterator.h
index ce1db5f89a0..9496b498fec 100644
--- a/src/server/shared/DataStores/DBStorageIterator.h
+++ b/src/server/shared/DataStores/DBStorageIterator.h
@@ -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); }