diff options
| -rw-r--r-- | src/common/vector_math.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/vector_math.h b/src/common/vector_math.h index 816ad4e33..02688e35e 100644 --- a/src/common/vector_math.h +++ b/src/common/vector_math.h | |||
| @@ -91,7 +91,7 @@ public: | |||
| 91 | { | 91 | { |
| 92 | x-=other.x; y-=other.y; | 92 | x-=other.x; y-=other.y; |
| 93 | } | 93 | } |
| 94 | template<class = typename std::enable_if<std::is_signed<T>::value>::type> | 94 | template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type> |
| 95 | Vec2<decltype(-T{})> operator -() const | 95 | Vec2<decltype(-T{})> operator -() const |
| 96 | { | 96 | { |
| 97 | return MakeVec(-x,-y); | 97 | return MakeVec(-x,-y); |
| @@ -222,7 +222,7 @@ public: | |||
| 222 | { | 222 | { |
| 223 | x-=other.x; y-=other.y; z-=other.z; | 223 | x-=other.x; y-=other.y; z-=other.z; |
| 224 | } | 224 | } |
| 225 | template<class = typename std::enable_if<std::is_signed<T>::value>::type> | 225 | template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type> |
| 226 | Vec3<decltype(-T{})> operator -() const | 226 | Vec3<decltype(-T{})> operator -() const |
| 227 | { | 227 | { |
| 228 | return MakeVec(-x,-y,-z); | 228 | return MakeVec(-x,-y,-z); |
| @@ -393,7 +393,7 @@ public: | |||
| 393 | { | 393 | { |
| 394 | x-=other.x; y-=other.y; z-=other.z; w-=other.w; | 394 | x-=other.x; y-=other.y; z-=other.z; w-=other.w; |
| 395 | } | 395 | } |
| 396 | template<class = typename std::enable_if<std::is_signed<T>::value>::type> | 396 | template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type> |
| 397 | Vec4<decltype(-T{})> operator -() const | 397 | Vec4<decltype(-T{})> operator -() const |
| 398 | { | 398 | { |
| 399 | return MakeVec(-x,-y,-z,-w); | 399 | return MakeVec(-x,-y,-z,-w); |