From: danshapero Date: Fri, 1 Apr 2016 03:56:15 +0000 (-0700) Subject: SparseMatrix move ctor now moves its parent Subscriptor X-Git-Tag: v8.5.0-rc1~1133^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbcd7d895f3b3e661b0b71f1450fd7a711403a4;p=dealii.git SparseMatrix move ctor now moves its parent Subscriptor --- diff --git a/include/deal.II/lac/sparse_matrix.templates.h b/include/deal.II/lac/sparse_matrix.templates.h index d95404deef..f4c7060b07 100644 --- a/include/deal.II/lac/sparse_matrix.templates.h +++ b/include/deal.II/lac/sparse_matrix.templates.h @@ -73,7 +73,7 @@ SparseMatrix::SparseMatrix (const SparseMatrix &m) template SparseMatrix::SparseMatrix (SparseMatrix &&m) : - Subscriptor(), + Subscriptor(std::move(m)), cols(m.cols), val(m.val), max_len(m.max_len)