]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using non-public members
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 26 May 2020 04:22:08 +0000 (00:22 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 26 May 2020 04:22:08 +0000 (00:22 -0400)
include/deal.II/base/linear_index_iterator.h

index c90b430840548c9c46bef3d1cd60c616cfcace1e..d69845f21255f9c25c995aa3c05fefa9ae093cb2 100644 (file)
@@ -256,8 +256,7 @@ public:
   operator==(const LinearIndexIterator &left, const OtherIterator &right)
   {
     const auto &right_2 = static_cast<const DerivedIterator &>(right);
-    return left.accessor.container == right_2.accessor.container &&
-           left.accessor.linear_index == right_2.accessor.linear_index;
+    return left.accessor == right_2.accessor;
   }
 
   /**

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.