From: Wolfgang 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-Tag: v8.2.0-rc1~589 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef704bff27889c74ff9ab4fdb24468ff768ec9c;p=dealii.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; };