]> https://gitweb.dealii.org/ - dealii.git/commitdiff
SparseMatrix move ctor now moves its parent Subscriptor
authordanshapero <shapero.daniel@gmail.com>
Fri, 1 Apr 2016 03:56:15 +0000 (20:56 -0700)
committerdanshapero <shapero.daniel@gmail.com>
Fri, 1 Apr 2016 03:56:15 +0000 (20:56 -0700)
include/deal.II/lac/sparse_matrix.templates.h

index d95404deefb03346f1bb89492d0fa9afd5cc8561..f4c7060b07fec8777cd666184911c3d0fac8507e 100644 (file)
@@ -73,7 +73,7 @@ SparseMatrix<number>::SparseMatrix (const SparseMatrix &m)
 template <typename number>
 SparseMatrix<number>::SparseMatrix (SparseMatrix<number> &&m)
   :
-  Subscriptor(),
+  Subscriptor(std::move(m)),
   cols(m.cols),
   val(m.val),
   max_len(m.max_len)

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.