From 5f8ed08c988b2e38d17e7fe2532a1415fff26720 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 May 2020 15:32:34 -0400 Subject: [PATCH] cppcheck: make an incremental move clearer. --- include/deal.II/base/table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5