Commit 3b5364d3 authored by Janis Born's avatar Janis Born

take VectorT argument by reference for non-member vector scalar multiplication (fixes #12)

parent 0a35e4d2
Pipeline #154 failed with stage
......@@ -251,7 +251,7 @@ VectorT<double,3>::operator%(const VectorT<double,3>& _rhs) const
/// \relates OpenMesh::VectorT
/// scalar * vector
template<typename Scalar1, typename Scalar2,int N>
inline VectorT<Scalar1,N> operator*(Scalar2 _s, const VectorT<Scalar1,N> _v) {
inline VectorT<Scalar1,N> operator*(Scalar2 _s, const VectorT<Scalar1,N>& _v) {
return _v*_s;
}
......
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