Fixed VC14 compiler warnings

This commit is contained in:
Christophe Riccio
2014-07-18 00:59:07 +02:00
parent cff845c2b4
commit 666475a84c
3 changed files with 26 additions and 29 deletions

View File

@@ -244,13 +244,13 @@ namespace detail
GLM_FUNC_DECL tvec4<T, P> & operator= (tvec4<T, P> const & v);
GLM_FUNC_DECL tvec4<T, P> & operator+=(T s);
GLM_FUNC_DECL tvec4<T, P> & operator+=(T v);
GLM_FUNC_DECL tvec4<T, P> & operator+=(tvec4<T, P> const & v);
GLM_FUNC_DECL tvec4<T, P> & operator-=(T s);
GLM_FUNC_DECL tvec4<T, P> & operator-=(T v);
GLM_FUNC_DECL tvec4<T, P> & operator-=(tvec4<T, P> const & v);
GLM_FUNC_DECL tvec4<T, P> & operator*=(T s);
GLM_FUNC_DECL tvec4<T, P> & operator*=(T v);
GLM_FUNC_DECL tvec4<T, P> & operator*=(tvec4<T, P> const & v);
GLM_FUNC_DECL tvec4<T, P> & operator/=(T s);
GLM_FUNC_DECL tvec4<T, P> & operator/=(T v);
GLM_FUNC_DECL tvec4<T, P> & operator/=(tvec4<T, P> const & v);
template <typename U, precision Q>

View File

@@ -295,12 +295,12 @@ namespace detail
#endif
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= (T s)
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator+= (T v)
{
this->x += s;
this->y += s;
this->z += s;
this->w += s;
this->x += v;
this->y += v;
this->z += v;
this->w += v;
return *this;
}
@@ -331,12 +331,12 @@ namespace detail
}
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= (T s)
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator-= (T v)
{
this->x -= s;
this->y -= s;
this->z -= s;
this->w -= s;
this->x -= v;
this->y -= v;
this->z -= v;
this->w -= v;
return *this;
}
@@ -351,12 +351,12 @@ namespace detail
}
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= (T s)
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator*= (T v)
{
this->x *= s;
this->y *= s;
this->z *= s;
this->w *= s;
this->x *= v;
this->y *= v;
this->z *= v;
this->w *= v;
return *this;
}
@@ -371,12 +371,12 @@ namespace detail
}
template <typename T, precision P>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= (T s)
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator/= (T v)
{
this->x /= s;
this->y /= s;
this->z /= s;
this->w /= s;
this->x /= v;
this->y /= v;
this->z /= v;
this->w /= v;
return *this;
}
@@ -390,9 +390,6 @@ namespace detail
return *this;
}
template <typename T, precision P>
template <typename U, precision Q>
GLM_FUNC_QUALIFIER tvec4<T, P> & tvec4<T, P>::operator= (tvec4<U, Q> const & v)