]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid Assert in destructors. 4686/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Aug 2017 11:19:39 +0000 (05:19 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Aug 2017 11:19:39 +0000 (05:19 -0600)
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

index 2d9119c3bd41f73e56aa04e35451f9bd70691862..db6060d2e84143f5511b29442e1a995d7a4bea7f 100644 (file)
@@ -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."));
       }
 
       /**

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.