From a02d558aad572bcbf9d8613be7911b6be1449a4a Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 6 May 2003 23:16:11 +0000 Subject: [PATCH] Fix copy operator for different argument types. This wasn't instantiable before. git-svn-id: https://svn.dealii.org/trunk@7596 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/table.h | 6 ++++++ deal.II/lac/include/lac/full_matrix.templates.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deal.II/base/include/base/table.h b/deal.II/base/include/base/table.h index 144c404d69..38d6c8a4c8 100644 --- a/deal.II/base/include/base/table.h +++ b/deal.II/base/include/base/table.h @@ -929,6 +929,12 @@ class TableBase : public Subscriptor * table. */ TableIndices table_size; + + /** + * Make all other table classes + * friends. + */ + template friend class TableBase; }; diff --git a/deal.II/lac/include/lac/full_matrix.templates.h b/deal.II/lac/include/lac/full_matrix.templates.h index 67c6f86cef..95a6e8c3a4 100644 --- a/deal.II/lac/include/lac/full_matrix.templates.h +++ b/deal.II/lac/include/lac/full_matrix.templates.h @@ -70,7 +70,7 @@ template FullMatrix& FullMatrix::operator = (const FullMatrix& M) { - Table<2,number>::operator=(M); + TableBase<2,number>::operator=(M); return *this; } -- 2.39.5