mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-08 06:48:56 -04:00
Explicitely declare default move ctors and assignments
This commit is contained in:
parent
df56f312ed
commit
76124eb4a5
@ -50,7 +50,9 @@ public:
|
|||||||
static Point Null();
|
static Point Null();
|
||||||
|
|
||||||
Point(const Point& other);
|
Point(const Point& other);
|
||||||
|
Point(Point&&) noexcept = default;
|
||||||
Point& operator=(const Point& other);
|
Point& operator=(const Point& other);
|
||||||
|
Point& operator=(Point&&) noexcept = default;
|
||||||
|
|
||||||
SDL_Point* Get();
|
SDL_Point* Get();
|
||||||
const SDL_Point* Get() const;
|
const SDL_Point* Get() const;
|
||||||
|
@ -44,7 +44,9 @@ public:
|
|||||||
static Rect FromCenter(int cx, int cy, int w, int h);
|
static Rect FromCenter(int cx, int cy, int w, int h);
|
||||||
|
|
||||||
Rect(const Rect& other);
|
Rect(const Rect& other);
|
||||||
|
Rect(Rect&&) noexcept = default;
|
||||||
Rect& operator=(const Rect& other);
|
Rect& operator=(const Rect& other);
|
||||||
|
Rect& operator=(Rect&&) noexcept = default;
|
||||||
|
|
||||||
SDL_Rect* Get();
|
SDL_Rect* Get();
|
||||||
const SDL_Rect* Get() const;
|
const SDL_Rect* Get() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user