aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseCore/AmbiVector.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-02-25 18:05:57 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-02-25 18:05:57 +0100
commit12a1313b09bcfdddc2cda311d6cb29b2accc2763 (patch)
treef0a58aa37bd9f162502f052897c749d3d5790f5f /Eigen/src/SparseCore/AmbiVector.h
parentcc35c4425698f8a9b8293af0c02dfc385442ad6b (diff)
bug #482: pass scalar arguments by const references. Still remains a few cases that might affect the ABI (see the bug entry)
Diffstat (limited to 'Eigen/src/SparseCore/AmbiVector.h')
-rw-r--r--Eigen/src/SparseCore/AmbiVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/AmbiVector.h b/Eigen/src/SparseCore/AmbiVector.h
index dca738751..17fff96a7 100644
--- a/Eigen/src/SparseCore/AmbiVector.h
+++ b/Eigen/src/SparseCore/AmbiVector.h
@@ -288,7 +288,7 @@ class AmbiVector<_Scalar,_Index>::Iterator
* In practice, all coefficients having a magnitude smaller than \a epsilon
* are skipped.
*/
- Iterator(const AmbiVector& vec, RealScalar epsilon = 0)
+ Iterator(const AmbiVector& vec, const RealScalar& epsilon = 0)
: m_vector(vec)
{
using std::abs;