From ad8e5685c281b3fffde366e03af9e81dbaa7b580 Mon Sep 17 00:00:00 2001
From: wolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
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<number>::begin (const unsigned int r) const
 template <typename number>
 inline
 typename SparseMatrixEZ<number>::const_iterator
-SparseMatrixEZ<number>::end (unsigned int r) const
+SparseMatrixEZ<number>::end (const unsigned int r) const
 {
   Assert (r<m(), ExcIndexRange(r,0,m()));
 
 				   // Usually, we should return the
 				   // first element of the next row.
-  const_iterator result(this, ++r, 0);
+  const_iterator result(this, r+1, 0);
 
 				   // If r was the last row, this is
 				   // always true. Otherwise, we have
@@ -1488,7 +1488,7 @@ SparseMatrixEZ<number>::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