]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adjust to older compilers in which declaring
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Feb 2009 19:46:57 +0000 (19:46 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Feb 2009 19:46:57 +0000 (19:46 +0000)
  friend class SparsityPatternIterators::const_iterator;
does not automatically also make
  SparsityPatternIterators::const_iterator::Accessor
a friend.

git-svn-id: https://svn.dealii.org/trunk@18379 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_sparsity_pattern.h

index e47ef726d46c6f2088f33f6a3e2512a4128c1115..461550176b5f1fbb806d793165f6648afaf82c3f 100755 (executable)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2008 by the deal.II authors
+//    Copyright (C) 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -237,6 +237,8 @@ namespace TrilinosWrappers
                                         * accessor class.
                                        */
         Accessor accessor;
+
+       friend class TrilinosWrappers::SparsityPattern;
     };
     
   }
@@ -1021,6 +1023,7 @@ namespace TrilinosWrappers
 
       friend class SparseMatrix;
       friend class SparsityPatternIterators::const_iterator;
+      friend class SparsityPatternIterators::const_iterator::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.