diff --git a/SDL2pp/Point.hh b/SDL2pp/Point.hh index 8e38e70..69e06c1 100644 --- a/SDL2pp/Point.hh +++ b/SDL2pp/Point.hh @@ -50,7 +50,9 @@ public: static Point Null(); Point(const Point& other); + Point(Point&&) noexcept = default; Point& operator=(const Point& other); + Point& operator=(Point&&) noexcept = default; SDL_Point* Get(); const SDL_Point* Get() const; diff --git a/SDL2pp/Rect.hh b/SDL2pp/Rect.hh index 152eb35..3cdf9ac 100644 --- a/SDL2pp/Rect.hh +++ b/SDL2pp/Rect.hh @@ -44,7 +44,9 @@ public: static Rect FromCenter(int cx, int cy, int w, int h); Rect(const Rect& other); + Rect(Rect&&) noexcept = default; Rect& operator=(const Rect& other); + Rect& operator=(Rect&&) noexcept = default; SDL_Rect* Get(); const SDL_Rect* Get() const;