From ac60dcc160ea0bec429d1e99490957d7f5d2b382 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 29 Dec 2019 10:02:54 -0330 Subject: [PATCH] libretro: Fix bug with using defaulted vs. user-defined c'tor. I think this is a compiler issue with that build environment, since this is legal C++11 code. --- src/common/Rect.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Rect.hxx b/src/common/Rect.hxx index 022330056..8f811cad8 100644 --- a/src/common/Rect.hxx +++ b/src/common/Rect.hxx @@ -108,7 +108,7 @@ struct Rect uInt32 bottom{0}, right{0}; public: - Rect() = default; + Rect() {} explicit Rect(const Size& s) : bottom(s.h), right(s.w) { assert(valid()); } Rect(uInt32 w, uInt32 h) : bottom(h), right(w) { assert(valid()); } Rect(const Point& p, uInt32 w, uInt32 h) : top(p.y), left(p.x), bottom(h), right(w) { assert(valid()); }