mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
Introduce a compilation error when using the wrong InnerIterator type.
This commit is contained in:
parent
e70506dd8f
commit
07c5500d70
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user