common/math_util: Make Rectangle's constructors constexpr

Allows objects that contain rectangle instances to be constexpr
constructible as well.
master
Lioncash 2018-11-21 01:57:32 +07:00
parent cc0801745a
commit f11173f88c
1 changed files with 2 additions and 2 deletions

@ -18,9 +18,9 @@ struct Rectangle {
T right{};
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) {}
T GetWidth() const {