From ff1f7555de27cbbe2cc00ae3f4a57f20a7f30d93 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 8 Aug 2018 15:53:39 -0400 Subject: [PATCH] vector_math: Use variable template version of is_signed in Vec classes Same behavior, less code --- src/common/vector_math.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}; }