From 86a1604eb9a8a3be8a64e727c2bfc1f282c45315 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 5 Jun 2020 12:20:01 -0400 Subject: [PATCH] Fix move construction/assignment for Subscriptor --- source/base/subscriptor.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5