From 427efe03554751a001ae1ff512bf06d4d35253d9 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 12 Jun 2020 01:17:57 -0500 Subject: [PATCH] Bugfix: Return a reference to *this in operator= Wow. I missed this. Surprising that we did not get a compiler warning for this. This fixes tests bits/periodicity_06/07 [1, 2]. [1] That test something entirely different but luckily happen to trigger this. [2] https://cdash.43-1.org/testDetails.php?test=47189344&build=7349 terminate called after throwing an instance of 'std::system_error' what(): Operation not permitted In reference to #10473 --- include/deal.II/base/thread_local_storage.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/deal.II/base/thread_local_storage.h b/include/deal.II/base/thread_local_storage.h index 80e47afb63..cd40096a46 100644 --- a/include/deal.II/base/thread_local_storage.h +++ b/include/deal.II/base/thread_local_storage.h @@ -353,6 +353,8 @@ namespace Threads std::unique_lock writer_lock(insertion_mutex); data = std::move(t.data); + + return *this; } -- 2.39.5