From a40aa5e5b8e9afee873eaa526d8e7c4a5d86a89b Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 21 Jan 2024 21:51:19 +0000 Subject: [PATCH] Add default equality operator to Point --- src/core/geometry_type.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/geometry_type.hpp b/src/core/geometry_type.hpp index 98d9c6f073..28ea1f00f3 100644 --- a/src/core/geometry_type.hpp +++ b/src/core/geometry_type.hpp @@ -21,6 +21,8 @@ struct Point { int x; int y; + + bool operator==(const Point&) const = default; }; /** Dimensions (a width and height) of a rectangle in 2D */