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 9aa6fae123
commit 9c8f7dfe94
5 changed files with 7 additions and 7 deletions

View File

@@ -188,7 +188,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);
}