From 85052b7a67e16f5b5d37ff2c74645cc43a7080e1 Mon Sep 17 00:00:00 2001 From: wolf Date: Sat, 20 Feb 1999 13:53:51 +0000 Subject: [PATCH] Fix a possible security problem with data members laid open to the public in the iterator classes. This was necessary at some time, but is no more with the newest egcs compiler. git-svn-id: https://svn.dealii.org/trunk@858 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/grid/tria_iterator.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/include/grid/tria_iterator.h b/deal.II/deal.II/include/grid/tria_iterator.h index ad5295d026..658fb80649 100644 --- a/deal.II/deal.II/include/grid/tria_iterator.h +++ b/deal.II/deal.II/include/grid/tria_iterator.h @@ -447,8 +447,19 @@ class TriaRawIterator : public bidirectional_iterator { */ DeclException0 (ExcAdvanceInvalidObject); /*@}*/ -// protected: // don't know why we can't declare this protected (gcc2.7/8 chokes!?) + protected: + /** + * Object holding the real data. + */ Accessor accessor; + + + // actually, I don't know why we need these + // classes to be friends, since they are + // derived classes anyway. but gcc and + // even egcs1.1.1 don't get it right + friend class TriaIterator; + friend class TriaActiveIterator; }; -- 2.39.5