From 426d8087e79c3dc8d9fb12d3d59113b50c5918a3 Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Thu, 8 Sep 2005 08:57:19 +0000 Subject: [PATCH] Missing comparison between BCRSMatrix::Iterator and BCRSMatrix::ConstIterator introduced. [[Imported from SVN: r316]] --- istl/bcrsmatrix.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/istl/bcrsmatrix.hh b/istl/bcrsmatrix.hh index 22e569dc7..33be8fa22 100644 --- a/istl/bcrsmatrix.hh +++ b/istl/bcrsmatrix.hh @@ -185,6 +185,19 @@ namespace Dune { // return (p+i)!=(it.p+it.i); return (i)!=(it.i); } + //! equality + bool operator== (const ConstIterator& it) const + { + // return (p+i)==(it.p+it.i); + return (i)==(it.i); + } + + //! inequality + bool operator!= (const ConstIterator& it) const + { + // return (p+i)!=(it.p+it.i); + return (i)!=(it.i); + } //! less than bool operator< (const Iterator& it) const -- GitLab