diff --git a/istl/bcrsmatrix.hh b/istl/bcrsmatrix.hh index 22e569dc79fb7e835b76f21f1837534279619e58..33be8fa22871bf5eb6bdb0107276bd201bb9ecfa 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