Add default equality operator to Point

This commit is contained in:
Jonathan G Rennison
2024-01-21 21:51:19 +00:00
parent a6635088e9
commit a40aa5e5b8

View File

@@ -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 */