aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-09-19 09:58:20 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-09-19 09:58:20 +0200
commit07c5500d709eb7914bd46a1c4b3629bf42783f1d (patch)
treea8782cc56cf0dc5e5e473954e8fcf5b3f4c6fe6d /Eigen/src
parente70506dd8f63241d92ebc3df2d9c01c9af5564c8 (diff)
Introduce a compilation error when using the wrong InnerIterator type.
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/SparseCore/SparseMatrix.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrix.h b/Eigen/src/SparseCore/SparseMatrix.h
index 72368ebf3..9e7124ff2 100644
--- a/Eigen/src/SparseCore/SparseMatrix.h
+++ b/Eigen/src/SparseCore/SparseMatrix.h
@@ -887,6 +887,11 @@ class SparseMatrix<Scalar,_Options,_Index>::InnerIterator
const Index m_outer;
Index m_id;
Index m_end;
+ private:
+ // If you get here, then you're not using the right InnerIterator type, e.g.:
+ // SparseMatrix<double,RowMajor> A;
+ // SparseMatrix<double>::InnerIterator it(A,0);
+ template<typename T> InnerIterator(const SparseMatrixBase<T>&,Index outer);
};
template<typename Scalar, int _Options, typename _Index>