From aa00359ab23f45bdb4f7e31b847f23f8c4659694 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 27 Nov 2023 04:27:19 -0800 Subject: [PATCH] srb2::math::Vec2: constexpr constructors --- src/math/vec.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/vec.hpp b/src/math/vec.hpp index 670a3677c..935725b3c 100644 --- a/src/math/vec.hpp +++ b/src/math/vec.hpp @@ -22,9 +22,9 @@ struct Vec2 { T x, y; - Vec2() : x{}, y{} {} - Vec2(T x_, T y_) : x(x_), y(y_) {} - Vec2(T z) : x(z), y(z) {} + constexpr Vec2() : x{}, y{} {} + constexpr Vec2(T x_, T y_) : x(x_), y(y_) {} + constexpr Vec2(T z) : x(z), y(z) {} template Vec2(const Vec2& b) : Vec2(b.x, b.y) {}