From 6e81004cfba05bfa1d7fea28a4861a144f27b55a Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Thu, 25 Apr 2024 10:55:04 +0100 Subject: [PATCH] add `const` qualifier to comparison operator --- include/mapnik/coord.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/coord.hpp b/include/mapnik/coord.hpp index 093c18636..0435249cd 100644 --- a/include/mapnik/coord.hpp +++ b/include/mapnik/coord.hpp @@ -94,7 +94,7 @@ struct coord } template - bool operator==(coord const& rhs) + bool operator==(coord const& rhs) const { return x == rhs.x && y == rhs.y; }