]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Extend friendship more so that we can actually declare Accessor::Reference a friend...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 Apr 2014 11:58:55 +0000 (11:58 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 17 Apr 2014 11:58:55 +0000 (11:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@32788 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/sparse_matrix.h

index 1b3b9e1fc9177d193e3ff1ffd71ea7f1f5df1a73..f0cf4bf438142b59cb418094825baaa4c03cc944 100644 (file)
@@ -301,9 +301,10 @@ namespace SparseMatrixIterators
     friend class Iterator;
 
     /**
-     * Make the inner reference class a friend if the compiler has a bug and
-     * requires this.
+     * Make the SparseMatrix class a friend so that it, in turn, can
+     * declare the Reference class a friend.
      */
+    template <typename> friend class dealii::SparseMatrix;
   };
 
 

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.