From 7ef704bff27889c74ff9ab4fdb24468ff768ec9c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 17 Apr 2014 11:58:55 +0000 Subject: [PATCH] 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 --- deal.II/include/deal.II/lac/sparse_matrix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }; -- 2.39.5