From 9c75cc48d75cf087c26e8f4c034131b114f7c6af Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 Aug 2017 05:19:39 -0600 Subject: [PATCH] Avoid Assert in destructors. We need to use AssertNothrow instead to ensure we don't throw exceptions in assertions, where this is not allowed. --- include/deal.II/base/parallel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/parallel.h b/include/deal.II/base/parallel.h index 2d9119c3bd..db6060d2e8 100644 --- a/include/deal.II/base/parallel.h +++ b/include/deal.II/base/parallel.h @@ -718,9 +718,9 @@ namespace parallel */ ~TBBPartitioner() { - Assert(in_use == false, - ExcInternalError("A vector partitioner goes out of scope, but " - "it appears to be still in use.")); + AssertNothrow(in_use == false, + ExcInternalError("A vector partitioner goes out of scope, but " + "it appears to be still in use.")); } /** -- 2.39.5