take VectorT argument by reference for non-member vector scalar multiplication (fixes #12)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user