From 76124eb4a5bebcca5450e5c10dd7b589c2a6b2f5 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 20 Sep 2013 22:51:16 +0400 Subject: [PATCH] Explicitely declare default move ctors and assignments --- SDL2pp/Point.hh | 2 ++ SDL2pp/Rect.hh | 2 ++ 2 files changed, 4 insertions(+) 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;