Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

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

missing ref in *= and /=

parent 97920ec3
...@@ -103,9 +103,9 @@ public: ...@@ -103,9 +103,9 @@ public:
Vector<DIM, T>& operator-=(const Vector<DIM, T>& v) ; 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 */ /* ARITHMETIC OPERATORS */
......
...@@ -173,7 +173,7 @@ inline Vector<DIM, T>& Vector<DIM, T>::operator-=(const Vector<DIM, T>& v) ...@@ -173,7 +173,7 @@ inline Vector<DIM, T>& Vector<DIM, T>::operator-=(const Vector<DIM, T>& v)
} }
template <unsigned int DIM, typename T> 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) for (unsigned int i = 0; i < DIM; ++i)
m_data[i] *= a ; m_data[i] *= a ;
...@@ -181,7 +181,7 @@ inline Vector<DIM, T> Vector<DIM, T>::operator*=(T a) ...@@ -181,7 +181,7 @@ inline Vector<DIM, T> Vector<DIM, T>::operator*=(T a)
} }
template <unsigned int DIM, typename T> 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) for (unsigned int i = 0; i < DIM; ++i)
m_data[i] /= a ; 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