From 3a35f2d97cc20df95587ed95306c0b69d54e2b49 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 23 Dec 2017 09:16:44 -0700 Subject: [PATCH] Move deleted operators out of the private: section of a class. There is no longer a reason to hide these operators. They aren't usable anyway, so we may as well document this publicly. --- include/deal.II/lac/petsc_matrix_base.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/include/deal.II/lac/petsc_matrix_base.h b/include/deal.II/lac/petsc_matrix_base.h index 94ec70aa05..befee04f5b 100644 --- a/include/deal.II/lac/petsc_matrix_base.h +++ b/include/deal.II/lac/petsc_matrix_base.h @@ -289,6 +289,20 @@ namespace PETScWrappers */ MatrixBase (); + /** + * Copy constructor. It is deleted as copying this base class + * without knowing the concrete kind of matrix stored may both + * miss important details and be expensive if the matrix is large. + */ + MatrixBase(const MatrixBase &) = delete; + + /** + * Copy operator. It is deleted as copying this base class + * without knowing the concrete kind of matrix stored may both + * miss important details and be expensive if the matrix is large. + */ + MatrixBase &operator=(const MatrixBase &) = delete; + /** * Destructor. Made virtual so that one can use pointers to this class. */ @@ -942,15 +956,6 @@ namespace PETScWrappers private: - /** - * purposefully not implemented - */ - MatrixBase(const MatrixBase &) = delete; - /** - * purposefully not implemented - */ - MatrixBase &operator=(const MatrixBase &) = delete; - /** * An internal array of integer values that is used to store the column * indices when adding/inserting local data into the (large) sparse -- 2.39.5