Commit 0da84625 authored by Sylvain Thery's avatar Sylvain Thery

missing ref in *= and /=

parent 97920ec3
......@@ -103,9 +103,9 @@ public:
Vector<DIM, T>& operator-=(const Vector<DIM, T>& v) ;
Vector<DIM, T> operator*=(T a) ;
Vector<DIM, T>& operator*=(T a) ;
Vector<DIM, T> operator/=(T a) ;
Vector<DIM, T>& operator/=(T a) ;
/**********************************************/
/* ARITHMETIC OPERATORS */
......
......@@ -173,7 +173,7 @@ inline Vector<DIM, T>& Vector<DIM, T>::operator-=(const Vector<DIM, T>& v)
}
template <unsigned int DIM, typename T>
inline Vector<DIM, T> Vector<DIM, T>::operator*=(T a)
inline Vector<DIM, T>& Vector<DIM, T>::operator*=(T a)
{
for (unsigned int i = 0; i < DIM; ++i)
m_data[i] *= a ;
......@@ -181,7 +181,7 @@ inline Vector<DIM, T> Vector<DIM, T>::operator*=(T a)
}
template <unsigned int DIM, typename T>
inline Vector<DIM, T> Vector<DIM, T>::operator/=(T a)
inline Vector<DIM, T>& Vector<DIM, T>::operator/=(T a)
{
for (unsigned int i = 0; i < DIM; ++i)
m_data[i] /= a ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment