Skip to content

Commit

Permalink
Add missing const qualifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed May 31, 2024
1 parent 24cdef8 commit 4d44a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hvec_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ class hvec_map : hash_vector_base {
bool empty() const { return inuse == 0; }
size_t size() const { return inuse; }
size_t max_size() const { return UINT32_MAX; }
bool operator==(const hvec_map &a) {
bool operator==(const hvec_map &a) const {
if (inuse != a.inuse) return false;
auto it = begin();
for (auto &el : a)
if (el != *it++) return false;
return true;
}
bool operator!=(const hvec_map &a) { return !(*this == a); }
bool operator!=(const hvec_map &a) const { return !(*this == a); }
void clear() {
hash_vector_base::clear();
data.clear();
Expand Down

0 comments on commit 4d44a74

Please sign in to comment.