]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Default copy constructor for MatrixBlock 9679/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 18 Mar 2020 22:55:28 +0000 (18:55 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 18 Mar 2020 22:55:28 +0000 (18:55 -0400)
include/deal.II/lac/matrix_block.h

index 6de8495a67ed76c6d16cf46bbf9de0780d5a418e..6c388aa822a4b35e92f79f18910737c448fe0873 100644 (file)
@@ -130,7 +130,7 @@ public:
   /**
    * Copy constructor.
    */
-  MatrixBlock(const MatrixBlock<MatrixType> &M);
+  MatrixBlock(const MatrixBlock<MatrixType> &M) = default;
 
   /**
    * Assignment operator.
@@ -644,17 +644,6 @@ inline MatrixBlock<MatrixType>::MatrixBlock()
 {}
 
 
-template <typename MatrixType>
-inline MatrixBlock<MatrixType>::MatrixBlock(const MatrixBlock<MatrixType> &M)
-  : Subscriptor()
-  , row(M.row)
-  , column(M.column)
-  , matrix(M.matrix)
-  , row_indices(M.row_indices)
-  , column_indices(M.column_indices)
-{}
-
-
 template <typename MatrixType>
 inline MatrixBlock<MatrixType>::MatrixBlock(size_type i, size_type j)
   : row(i)

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.