From: Wolfgang Bangerth Date: Tue, 11 Jul 2017 22:04:15 +0000 (-0600) Subject: Make SynchronousIterators::iterators private. X-Git-Tag: v9.0.0-rc1~1429^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7de40d6dc21cfe3029d5395e025d554883afe3bf;p=dealii.git Make SynchronousIterators::iterators private. This is a member that should have been private all along, but wasn't. It is now possible to access it via operator*. --- diff --git a/include/deal.II/base/parallel.h b/include/deal.II/base/parallel.h index e39d2d2ec8..2d9119c3bd 100644 --- a/include/deal.II/base/parallel.h +++ b/include/deal.II/base/parallel.h @@ -89,7 +89,7 @@ namespace parallel { for (typename Range::const_iterator p=range.begin(); p != range.end(); ++p) - apply (f, p.iterators); + apply (f, *p); } private: diff --git a/include/deal.II/base/synchronous_iterator.h b/include/deal.II/base/synchronous_iterator.h index ac7e240c8e..e7ce3ef083 100644 --- a/include/deal.II/base/synchronous_iterator.h +++ b/include/deal.II/base/synchronous_iterator.h @@ -72,6 +72,7 @@ struct SynchronousIterators */ Iterators &operator* (); +private: /** * Storage for the iterators represented by the current class. */