bug #1156: fix several function declarations whose arguments were passed by value instead of being passed by reference

This commit is contained in:
Gael Guennebaud
2016-01-27 18:34:42 +01:00
parent 4daa1292d7
commit 55565a0da4
5 changed files with 9 additions and 9 deletions

View File

@@ -177,7 +177,7 @@ template<typename _Scalar> class AlignedVector3
}
template<typename Derived>
inline bool isApprox(const MatrixBase<Derived>& other, RealScalar eps=NumTraits<Scalar>::dummy_precision()) const
inline bool isApprox(const MatrixBase<Derived>& other, const RealScalar& eps=NumTraits<Scalar>::dummy_precision()) const
{
return m_coeffs.template head<3>().isApprox(other,eps);
}