From: David Wells Date: Sat, 9 May 2020 19:32:34 +0000 (-0400) Subject: cppcheck: make an incremental move clearer. X-Git-Tag: v9.2.0-rc1~60^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10107%2Fhead;p=dealii.git cppcheck: make an incremental move clearer. --- diff --git a/include/deal.II/base/table.h b/include/deal.II/base/table.h index 2a2b02dca9..285e9d268b 100644 --- a/include/deal.II/base/table.h +++ b/include/deal.II/base/table.h @@ -2300,7 +2300,7 @@ template inline TableBase & TableBase::operator=(TableBase &&m) noexcept { - static_cast(*this) = std::move(m); + static_cast(*this) = std::move(static_cast(m)); values = std::move(m.values); table_size = m.table_size; m.table_size = TableIndices();