]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a class function as const
authorJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 2 May 2019 17:29:10 +0000 (19:29 +0200)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 2 May 2019 17:29:10 +0000 (19:29 +0200)
include/deal.II/base/iterator_range.h

index cf09a4f6e7fbeb7169409c64d191c5d19d495ba8..ed39ffd6d9020006e91248e9f5558163e30c3f86 100644 (file)
@@ -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<Iterator>::IteratorOverIterators::operator++(int)
 template <typename Iterator>
 inline bool
 IteratorRange<Iterator>::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;
 }

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.