diff --git a/src/common/vector_math.h b/src/common/vector_math.h index a00d403104..e349a3dc77 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h @@ -82,7 +82,7 @@ public: } template - constexpr Vec2::value, U>> operator-() const { + constexpr Vec2, U>> operator-() const { return {-x, -y}; } constexpr Vec2 operator*(const Vec2& other) const { @@ -235,7 +235,7 @@ public: } template - constexpr Vec3::value, U>> operator-() const { + constexpr Vec3, U>> operator-() const { return {-x, -y, -z}; } @@ -448,7 +448,7 @@ public: } template - constexpr Vec4::value, U>> operator-() const { + constexpr Vec4, U>> operator-() const { return {-x, -y, -z, -w}; }