From: bangerth Date: Tue, 4 Feb 2014 22:26:40 +0000 (+0000) Subject: Get the list of friends of a class right after a recent change. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=320c8628a639f6573e6c51b6adee69fc10dc972c;p=dealii-svn.git Get the list of friends of a class right after a recent change. git-svn-id: https://svn.dealii.org/trunk@32410 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/matrix_block.h b/deal.II/include/deal.II/lac/matrix_block.h index 591f899180..938b9cf60f 100644 --- a/deal.II/include/deal.II/lac/matrix_block.h +++ b/deal.II/include/deal.II/lac/matrix_block.h @@ -37,11 +37,13 @@ namespace internal { template void - reinit(MatrixBlock &v, const BlockSparsityPattern &p); + reinit(MatrixBlock &v, + const BlockSparsityPattern &p); template void - reinit(MatrixBlock > &, const BlockSparsityPattern &); + reinit(MatrixBlock > &v, + const BlockSparsityPattern &p); } /** @@ -369,6 +371,7 @@ public: * The matrix itself */ MATRIX matrix; + private: /** * The rwo BlockIndices of the @@ -389,7 +392,14 @@ private: BlockIndices column_indices; template - friend void internal::reinit(MatrixBlock &, const BlockSparsityPattern &); + friend + void dealii::internal::reinit(MatrixBlock &, + const BlockSparsityPattern &); + + template + friend + void internal::reinit(MatrixBlock > &v, + const BlockSparsityPattern &p); }; @@ -691,7 +701,8 @@ namespace internal { template void - reinit(MatrixBlock &v, const BlockSparsityPattern &p) + reinit(MatrixBlock &v, + const BlockSparsityPattern &p) { v.row_indices = p.get_row_indices(); v.column_indices = p.get_column_indices(); @@ -700,7 +711,8 @@ namespace internal template void - reinit(MatrixBlock > &v, const BlockSparsityPattern &p) + reinit(MatrixBlock > &v, + const BlockSparsityPattern &p) { v.row_indices = p.get_row_indices(); v.column_indices = p.get_column_indices();