]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a bug in icc.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Mar 2004 16:07:56 +0000 (16:07 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 4 Mar 2004 16:07:56 +0000 (16:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@8656 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_out.h

index 742ddcb49728b77bef595aabc7f568de9ed31433..f059d9033370c8ec3ecd17dffb516582bb0f90a9 100644 (file)
@@ -703,6 +703,20 @@ class DataOut_DoFData : public DataOutInterface<patch_dim,patch_space_dim>
                                      * @p{merge_patches} function.
                                      */
     template <int,int,int> friend class DataOut_DoFData;
+
+#ifdef DEAL_II_CHECK_NESTED_CLASS_FRIEND_BUG
+                                     /**
+                                      * Make DataEntry a friend. This should
+                                      * not be strictly necessary, since
+                                      * members are implicitly friends, but in
+                                      * this case it seems as if icc needs
+                                      * this. Otherwise, it complains that
+                                      * DataEntry can't derive from
+                                      * DataEntryBase since the latter is a
+                                      * private member of DataOut_DoFData.
+                                      */
+    template <typename> friend class DataEntry;
+#endif
 };
 
 

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.