From: Otto Moerbeek Date: Mon, 8 Sep 2025 07:41:58 +0000 (+0200) Subject: Fix two more cases of ambiguous operator calls X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7da44d7a08c3cd4c2e41ce4aa03f3abfb93b1c27;p=thirdparty%2Fpdns.git Fix two more cases of ambiguous operator calls Signed-off-by: Otto Moerbeek --- diff --git a/pdns/iputils.hh b/pdns/iputils.hh index 5e74d0ddc9..3a445eb998 100644 --- a/pdns/iputils.hh +++ b/pdns/iputils.hh @@ -1305,11 +1305,11 @@ public: return &d_node->node; } - bool operator==(const Iterator& rhs) + bool operator==(const Iterator& rhs) const { return (d_tree == rhs.d_tree && d_node == rhs.d_node); } - bool operator!=(const Iterator& rhs) + bool operator!=(const Iterator& rhs) const { return !(*this == rhs); }