From 98d9712a99b08a3ad6acae191ceee03b905352c0 Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 22 Oct 2013 08:56:34 +0000 Subject: [PATCH] Bugfix and provide a news item git-svn-id: https://svn.dealii.org/trunk@31379 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 9 +++++++++ deal.II/source/base/exceptions.cc | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 601e5ea81f..42be735793 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -168,6 +168,15 @@ inconvenience this causes.

Specific improvements

    +
  1. + ~Subscriptor and ~GrowingVectorMemory no longer throw an exception (the + former if disable_abort_on_exception was called) to be compatible with the + C++11 standard which otherwise requires the program to immediately call + std::terminate. This was done with a new macro "AssertNothrow". +
    + (Wolfgang Bangerth, Matthias Maier, Bruno Turcksin 2013/10/22) +
  2. +
  3. dealii::SolverControl::NoConvergence now inherits dealii::ExceptionBase and is thrown via AssertThrow(false, ... ). diff --git a/deal.II/source/base/exceptions.cc b/deal.II/source/base/exceptions.cc index 28638e8501..81f8b3075e 100644 --- a/deal.II/source/base/exceptions.cc +++ b/deal.II/source/base/exceptions.cc @@ -294,7 +294,7 @@ namespace deal_II_exceptions // We are not allowed to throw, and not allowed to abort. // Just print the exception name to deallog and continue // normally: - deallog << "Exception: " << e.get_exc_name() << std::endl; + deallog << "Exception: " << exc.get_exc_name() << std::endl; } else { -- 2.39.5