From 9f3339a5947db7d6cc6bcd1faffce3ea18a3fa18 Mon Sep 17 00:00:00 2001 From: MistEO Date: Sat, 21 Aug 2021 22:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=87=A0=E4=B8=AA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MeoAssistance/AsstDef.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MeoAssistance/AsstDef.h b/MeoAssistance/AsstDef.h index 5b18ab8ba6..92454c0a22 100644 --- a/MeoAssistance/AsstDef.h +++ b/MeoAssistance/AsstDef.h @@ -52,7 +52,11 @@ namespace asst { struct Point { Point() = default; + Point(const Point&) noexcept = default; + Point(Point&&) noexcept = default; Point(int x, int y) : x(x), y(y) {} + Point& operator=(const Point&) noexcept = default; + Point& operator=(Point&&) noexcept = default; int x = 0; int y = 0; }; @@ -60,6 +64,8 @@ namespace asst { struct Rect { Rect() = default; + Rect(const Rect&) noexcept = default; + Rect(Rect&&) noexcept = default; Rect(int x, int y, int width, int height) : x(x), y(y), width(width), height(height) {} Rect operator*(double rhs) const @@ -73,6 +79,9 @@ namespace asst { return { x + half_width_scale, y + half_hight_scale, static_cast(width * scale), static_cast(height * scale) }; } + Rect& operator=(const Rect&) noexcept = default; + Rect& operator=(Rect&&) noexcept = default; + int x = 0; int y = 0; int width = 0;