AK: Make Point constructors constexpr

This commit is contained in:
FrHun 2022-06-16 15:45:00 +02:00 committed by Sam Atkins
commit 325042f2b7
Notes: sideshowbarker 2024-07-17 10:04:20 +09:00

View file

@ -22,14 +22,14 @@ class Point {
public: public:
Point() = default; Point() = default;
Point(T x, T y) constexpr Point(T x, T y)
: m_x(x) : m_x(x)
, m_y(y) , m_y(y)
{ {
} }
template<typename U> template<typename U>
Point(U x, U y) constexpr Point(U x, U y)
: m_x(x) : m_x(x)
, m_y(y) , m_y(y)
{ {