From e9431e6557cc95057aed2a43cd70912e0b6758fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Thu, 18 Jun 2015 11:53:05 +0000 Subject: [PATCH] fix compile error on vector scalar multiplication when scalar type differs of vector scalar type and the scalar was lhs closes #2367 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1291 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Geometry/VectorT.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenMesh/Core/Geometry/VectorT.hh b/src/OpenMesh/Core/Geometry/VectorT.hh index 45614868..5b552072 100644 --- a/src/OpenMesh/Core/Geometry/VectorT.hh +++ b/src/OpenMesh/Core/Geometry/VectorT.hh @@ -250,9 +250,9 @@ VectorT::operator%(const VectorT& _rhs) const /// \relates OpenMesh::VectorT /// scalar * vector -template -inline VectorT operator*(Scalar _s, const VectorT& _v) { - return VectorT(_v) *= _s; +template +inline VectorT operator*(Scalar2 _s, const VectorT _v) { + return _v*_s; }