]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a forgotten std::move(...) use.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 1 Aug 2024 16:28:37 +0000 (10:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 10 Aug 2024 03:57:21 +0000 (21:57 -0600)
include/deal.II/lac/sparse_matrix.templates.h

index a2202bef3478c8f374506a66ac535b736e3b47e1..114569017a72899fbd8dd4743ccb163516ab2e70 100644 (file)
@@ -73,7 +73,7 @@ SparseMatrix<number>::SparseMatrix(const SparseMatrix &m)
 template <typename number>
 SparseMatrix<number>::SparseMatrix(SparseMatrix<number> &&m) noexcept
   : Subscriptor(std::move(m))
-  , cols(m.cols)
+  , cols(std::move(m.cols))
   , val(std::move(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.