Add default equality operator to Point
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
struct Point {
|
struct Point {
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
|
|
||||||
|
bool operator==(const Point&) const = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Dimensions (a width and height) of a rectangle in 2D */
|
/** Dimensions (a width and height) of a rectangle in 2D */
|
||||||
|
Reference in New Issue
Block a user