According to the C++11 standard [class.dtor] 3 in combination with
[except.spec] 14 and [except.spec] 9---as explained in detail in
[1]---we're guilty of just terminating in case of throwing an exception in
a destructor.
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3204.htm
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31235
0785d39b-7218-0410-832d-
ea1e28bc413d
/**
* Virtual destructor.
*/
+#ifdef DEAL_II_USE_CXX11
+ virtual ~FunctionTime() noexcept(false);
+#else
virtual ~FunctionTime();
+#endif
/**
* Return the value of the time variable/
* Destructor, asserting that the counter
* is zero.
*/
+#ifdef DEAL_II_USE_CXX11
+ virtual ~Subscriptor() noexcept(false);
+#else
virtual ~Subscriptor();
+#endif
/**
* Assignment operator.
+#ifdef DEAL_II_USE_CXX11
+FunctionTime::~FunctionTime() noexcept(false)
+#else
FunctionTime::~FunctionTime()
+#endif
{}
{}
+#ifdef DEAL_II_USE_CXX11
+Subscriptor::~Subscriptor () noexcept(false)
+#else
Subscriptor::~Subscriptor ()
+#endif
{
// check whether there are still
// subscriptions to this object. if
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