From 3b5364d3e43b9af589dfa2574e8d15af4783fd8a Mon Sep 17 00:00:00 2001 From: Janis Born Date: Thu, 26 Nov 2015 12:46:08 +0100 Subject: [PATCH] take VectorT argument by reference for non-member vector scalar multiplication (fixes #12) --- src/OpenMesh/Core/Geometry/VectorT.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/Geometry/VectorT.hh b/src/OpenMesh/Core/Geometry/VectorT.hh index 713637e9..b79882b4 100644 --- a/src/OpenMesh/Core/Geometry/VectorT.hh +++ b/src/OpenMesh/Core/Geometry/VectorT.hh @@ -251,7 +251,7 @@ VectorT::operator%(const VectorT& _rhs) const /// \relates OpenMesh::VectorT /// scalar * vector template -inline VectorT operator*(Scalar2 _s, const VectorT _v) { +inline VectorT operator*(Scalar2 _s, const VectorT& _v) { return _v*_s; }