From 5e286e988f6b4826ab330b8f1370d1c22d538fb4 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Thu, 2 May 2019 19:29:10 +0200 Subject: [PATCH] Mark a class function as const --- include/deal.II/base/iterator_range.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5