]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a possible security problem with data members laid open to the
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Feb 1999 13:53:51 +0000 (13:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 20 Feb 1999 13:53:51 +0000 (13:53 +0000)
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

index ad5295d026166e161db392f321038c88101ffdee..658fb80649536df480347dca58d57c0d2c824923 100644 (file)
@@ -447,8 +447,19 @@ class TriaRawIterator : public bidirectional_iterator<Accessor,int> {
                                      */
     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<dim,Accessor>;
+    friend class TriaActiveIterator<dim,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.