]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move deleted operators out of the private: section of a class. 5671/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 23 Dec 2017 16:16:44 +0000 (09:16 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 24 Dec 2017 15:23:02 +0000 (08:23 -0700)
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

index 94ec70aa0527d8c6c93d51e808c723cdb3a546c5..befee04f5b35bef6e3fc368f5e91aead21f8a8cd 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.