]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: make an incremental move clearer. 10107/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 9 May 2020 19:32:34 +0000 (15:32 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 9 May 2020 23:24:48 +0000 (19:24 -0400)
include/deal.II/base/table.h

index 2a2b02dca95573528c7aebafbe36752507230e24..285e9d268be2fe53132200492501bfc9cd043fce 100644 (file)
@@ -2300,7 +2300,7 @@ template <int N, typename T>
 inline TableBase<N, T> &
 TableBase<N, T>::operator=(TableBase<N, T> &&m) noexcept
 {
-  static_cast<Subscriptor &>(*this) = std::move(m);
+  static_cast<Subscriptor &>(*this) = std::move(static_cast<Subscriptor &>(m));
   values                            = std::move(m.values);
   table_size                        = m.table_size;
   m.table_size                      = TableIndices<N>();

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.