Commit e9431e65 authored by Matthias Möller's avatar Matthias Möller

fix compile error on vector scalar multiplication when scalar type differs of...

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
parent 508305c5
......@@ -250,9 +250,9 @@ VectorT<double,3>::operator%(const VectorT<double,3>& _rhs) const
/// \relates OpenMesh::VectorT
/// scalar * vector
template<typename Scalar,int N>
inline VectorT<Scalar,N> operator*(Scalar _s, const VectorT<Scalar,N>& _v) {
return VectorT<Scalar,N>(_v) *= _s;
template<typename Scalar1, typename Scalar2,int N>
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