1
0
Fork 0

fix failure on gcc and clang

This commit is contained in:
wwylele 2015-11-12 20:31:31 +02:00
parent 8de154893c
commit 1f89d5d184
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public:
{ {
x-=other.x; y-=other.y; 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 Vec2<decltype(-T{})> operator -() const
{ {
return MakeVec(-x,-y); return MakeVec(-x,-y);
@ -222,7 +222,7 @@ public:
{ {
x-=other.x; y-=other.y; z-=other.z; 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 Vec3<decltype(-T{})> operator -() const
{ {
return MakeVec(-x,-y,-z); return MakeVec(-x,-y,-z);
@ -393,7 +393,7 @@ public:
{ {
x-=other.x; y-=other.y; z-=other.z; w-=other.w; 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 Vec4<decltype(-T{})> operator -() const
{ {
return MakeVec(-x,-y,-z,-w); return MakeVec(-x,-y,-z,-w);