]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do not confuse icc (which wants to have "const" in both declaration
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Apr 2003 23:50:15 +0000 (23:50 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Apr 2003 23:50:15 +0000 (23:50 +0000)
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

index f9f286cbfac666ffd663494ac49e4340125497b8..181e387d6a06cd98bef8d8bf4d0b583394a8f636 100644 (file)
@@ -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;
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.