From: Daniel Arndt Date: Fri, 5 Jun 2020 16:20:01 +0000 (-0400) Subject: Fix move construction/assignment for Subscriptor X-Git-Tag: v9.3.0-rc1~1478^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a1604eb9a8a3be8a64e727c2bfc1f282c45315;p=dealii.git Fix move construction/assignment for Subscriptor --- diff --git a/source/base/subscriptor.cc b/source/base/subscriptor.cc index fc9334d562..e6e7a8365a 100644 --- a/source/base/subscriptor.cc +++ b/source/base/subscriptor.cc @@ -36,6 +36,7 @@ Subscriptor::Subscriptor(Subscriptor &&subscriptor) noexcept { for (const auto validity_ptr : subscriptor.validity_pointers) *validity_ptr = false; + subscriptor.validity_pointers.clear(); } @@ -124,6 +125,7 @@ Subscriptor::operator=(Subscriptor &&s) noexcept { for (const auto validity_ptr : s.validity_pointers) *validity_ptr = false; + s.validity_pointers.clear(); object_info = s.object_info; return *this; }