From: bangerth Date: Thu, 17 Apr 2014 11:58:55 +0000 (+0000) Subject: Extend friendship more so that we can actually declare Accessor::Reference a friend... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a52a411fa00b7361a698c535da191e7d8514339;p=dealii-svn.git Extend friendship more so that we can actually declare Accessor::Reference a friend of SparseMatrix. git-svn-id: https://svn.dealii.org/trunk@32788 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/sparse_matrix.h b/deal.II/include/deal.II/lac/sparse_matrix.h index 1b3b9e1fc9..f0cf4bf438 100644 --- a/deal.II/include/deal.II/lac/sparse_matrix.h +++ b/deal.II/include/deal.II/lac/sparse_matrix.h @@ -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 friend class dealii::SparseMatrix; };