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
This commit is contained in:
@@ -250,9 +250,9 @@ VectorT<double,3>::operator%(const VectorT<double,3>& _rhs) const
|
|||||||
|
|
||||||
/// \relates OpenMesh::VectorT
|
/// \relates OpenMesh::VectorT
|
||||||
/// scalar * vector
|
/// scalar * vector
|
||||||
template<typename Scalar,int N>
|
template<typename Scalar1, typename Scalar2,int N>
|
||||||
inline VectorT<Scalar,N> operator*(Scalar _s, const VectorT<Scalar,N>& _v) {
|
inline VectorT<Scalar1,N> operator*(Scalar2 _s, const VectorT<Scalar1,N> _v) {
|
||||||
return VectorT<Scalar,N>(_v) *= _s;
|
return _v*_s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user