AK: Make Point constructors constexpr

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

View File

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