From ad8e5685c281b3fffde366e03af9e81dbaa7b580 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 22 Apr 2003 23:50:15 +0000 Subject: [PATCH] Do not confuse icc (which wants to have "const" in both declaration and definition. git-svn-id: https://svn.dealii.org/trunk@7445 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/sparse_matrix_ez.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/lac/include/lac/sparse_matrix_ez.h b/deal.II/lac/include/lac/sparse_matrix_ez.h index f9f286cbfa..181e387d6a 100644 --- a/deal.II/lac/include/lac/sparse_matrix_ez.h +++ b/deal.II/lac/include/lac/sparse_matrix_ez.h @@ -1474,13 +1474,13 @@ SparseMatrixEZ::begin (const unsigned int r) const template inline typename SparseMatrixEZ::const_iterator -SparseMatrixEZ::end (unsigned int r) const +SparseMatrixEZ::end (const unsigned int r) const { Assert (r::end (unsigned int r) const // entry in the next row. If not, // we advance to the next valid // entry or end(). - if (r < row_info.size() && row_info[r].length == 0) + if (r+1 < row_info.size() && row_info[r+1].length == 0) ++result; return result; } -- 2.39.5