From: Jean-Paul Pelteret Date: Thu, 2 May 2019 17:29:10 +0000 (+0200) Subject: Mark a class function as const X-Git-Tag: v9.1.0-rc1~126^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e286e988f6b4826ab330b8f1370d1c22d538fb4;p=dealii.git Mark a class function as const --- diff --git a/include/deal.II/base/iterator_range.h b/include/deal.II/base/iterator_range.h index cf09a4f6e7..ed39ffd6d9 100644 --- a/include/deal.II/base/iterator_range.h +++ b/include/deal.II/base/iterator_range.h @@ -172,7 +172,7 @@ public: * object than the iterator represented by the argument. */ bool - operator!=(const IteratorOverIterators &i_o_i); + operator!=(const IteratorOverIterators &i_o_i) const; /** * Mark the class as forward iterator and declare some alias which are @@ -291,7 +291,7 @@ IteratorRange::IteratorOverIterators::operator++(int) template inline bool IteratorRange::IteratorOverIterators:: -operator!=(const IteratorOverIterators &i_o_i) +operator!=(const IteratorOverIterators &i_o_i) const { return element_of_iterator_collection != i_o_i.element_of_iterator_collection; }