git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31236
0785d39b-7218-0410-832d-
ea1e28bc413d
* is zero.
*/
#ifdef DEAL_II_USE_CXX11
+ // 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 ~Subscriptor if we do not annotate it with
+ // "noexcept(false)"
+ // [1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3204.htm
virtual ~Subscriptor() noexcept(false);
#else
virtual ~Subscriptor();
* as there are virtual functions
* in this class.
*/
- virtual ~VectorMemory() {}
+#ifdef DEAL_II_USE_CXX11
+ virtual ~VectorMemory () noexcept(false) {}
+#else
+ virtual ~VectorMemory () {}
+#endif
/**
* Return a pointer to a new
* a warning message, if there
* are allocated vectors left.
*/
- ~GrowingVectorMemory();
+#ifdef DEAL_II_USE_CXX11
+ virtual ~GrowingVectorMemory() noexcept(false);
+#else
+ virtual ~GrowingVectorMemory();
+#endif
/**
* Return a pointer to a new
template<typename VECTOR>
inline
-GrowingVectorMemory<VECTOR>::~GrowingVectorMemory()
+GrowingVectorMemory<VECTOR>::~GrowingVectorMemory() noexcept(false)
{
AssertThrow(current_alloc == 0,
StandardExceptions::ExcMemoryLeak(current_alloc));
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