Explicitely declare default move ctors and assignments

This commit is contained in:
Dmitry Marakasov 2013-09-20 22:51:16 +04:00
parent df56f312ed
commit 76124eb4a5
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;