From: Wolfgang Bangerth Date: Thu, 3 Aug 2017 11:19:39 +0000 (-0600) Subject: Avoid Assert in destructors. X-Git-Tag: v9.0.0-rc1~1369^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4686%2Fhead;p=dealii.git Avoid Assert in destructors. We need to use AssertNothrow instead to ensure we don't throw exceptions in assertions, where this is not allowed. --- 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.")); } /**