From: Wolfgang Bangerth Date: Sat, 23 Dec 2017 16:16:44 +0000 (-0700) Subject: Move deleted operators out of the private: section of a class. X-Git-Tag: v9.0.0-rc1~620^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5671%2Fhead;p=dealii.git 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. --- 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