]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a destructor now no longer necessary. 12269/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 May 2021 21:43:18 +0000 (15:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 20 May 2021 21:47:23 +0000 (15:47 -0600)
Leave the declaration in place but =default it, so that we continue to implement
the rule of 7.

include/deal.II/base/aligned_vector.h

index 4d48f7d433937bf09b6051a410c50d93a1004a64..4ae140b8e4cabacd66187f09aedb4f93199f563c 100644 (file)
@@ -90,7 +90,7 @@ public:
   /**
    * Destructor.
    */
-  ~AlignedVector();
+  ~AlignedVector() = default;
 
   /**
    * Copy constructor.
@@ -842,14 +842,6 @@ inline AlignedVector<T>::AlignedVector(const size_type size, const T &init)
 
 
 
-template <class T>
-inline AlignedVector<T>::~AlignedVector()
-{
-  clear();
-}
-
-
-
 template <class T>
 inline AlignedVector<T>::AlignedVector(const AlignedVector<T> &vec)
   : elements(nullptr, [](T *) { Assert(false, ExcInternalError()); })

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.