From 4d44a740a4d652c22285919538e1af82aaf038f5 Mon Sep 17 00:00:00 2001 From: fruffy Date: Fri, 31 May 2024 13:12:09 -0400 Subject: [PATCH] Add missing const qualifier. --- lib/hvec_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hvec_map.h b/lib/hvec_map.h index 19117ccf78b..4a8e34ab852 100644 --- a/lib/hvec_map.h +++ b/lib/hvec_map.h @@ -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();