citra-emu
/
citra-canary
Archived
1
0
Fork 0

common/math_util: Make Rectangle's constructors constexpr

Allows objects that contain rectangle instances to be constexpr
constructible as well.
This commit is contained in:
Lioncash 2018-11-21 01:57:32 -05:00 committed by fearlessTobi
parent bf8f7f0ab6
commit 8d169a4bfa
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ struct Rectangle {
T right{}; T right{};
T bottom{}; T bottom{};
Rectangle() = default; constexpr Rectangle() = default;
Rectangle(T left, T top, T right, T bottom) constexpr Rectangle(T left, T top, T right, T bottom)
: left(left), top(top), right(right), bottom(bottom) {} : left(left), top(top), right(right), bottom(bottom) {}
T GetWidth() const { T GetWidth() const {