From: wolf Date: Sat, 20 Feb 1999 13:53:51 +0000 (+0000) Subject: Fix a possible security problem with data members laid open to the X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85052b7a67e16f5b5d37ff2c74645cc43a7080e1;p=dealii-svn.git 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 --- 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; };