summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2015-11-12 19:31:31 +0100
committerwwylele <wwylele@gmail.com>2015-11-12 19:39:30 +0100
commit1f89d5d184ab3a034c1501ad3e9844d787cbae41 (patch)
tree849e7919afb301eaf56d202083db79a31c139a43 /src
parentdisable unary minus when the type is not signed (diff)
downloadyuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar.gz
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar.bz2
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar.lz
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar.xz
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.tar.zst
yuzu-1f89d5d184ab3a034c1501ad3e9844d787cbae41.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/vector_math.h6
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:
{
x-=other.x; y-=other.y;
}
- template<class = typename std::enable_if<std::is_signed<T>::value>::type>
+ template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type>
Vec2<decltype(-T{})> operator -() const
{
return MakeVec(-x,-y);
@@ -222,7 +222,7 @@ public:
{
x-=other.x; y-=other.y; z-=other.z;
}
- template<class = typename std::enable_if<std::is_signed<T>::value>::type>
+ template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type>
Vec3<decltype(-T{})> operator -() const
{
return MakeVec(-x,-y,-z);
@@ -393,7 +393,7 @@ public:
{
x-=other.x; y-=other.y; z-=other.z; w-=other.w;
}
- template<class = typename std::enable_if<std::is_signed<T>::value>::type>
+ template<typename Q = T,class = typename std::enable_if<std::is_signed<Q>::value>::type>
Vec4<decltype(-T{})> operator -() const
{
return MakeVec(-x,-y,-z,-w);