From 7a2aa3b99d4b08dad9a998fe2bdde72371e9bc07 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 26 May 2020 00:22:08 -0400 Subject: [PATCH] Avoid using non-public members --- include/deal.II/base/linear_index_iterator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/deal.II/base/linear_index_iterator.h b/include/deal.II/base/linear_index_iterator.h index c90b430840..d69845f212 100644 --- a/include/deal.II/base/linear_index_iterator.h +++ b/include/deal.II/base/linear_index_iterator.h @@ -256,8 +256,7 @@ public: operator==(const LinearIndexIterator &left, const OtherIterator &right) { const auto &right_2 = static_cast(right); - return left.accessor.container == right_2.accessor.container && - left.accessor.linear_index == right_2.accessor.linear_index; + return left.accessor == right_2.accessor; } /** -- 2.39.5