From: Wolfgang Bangerth Date: Tue, 11 May 2021 21:43:18 +0000 (-0600) Subject: Remove a destructor now no longer necessary. X-Git-Tag: v9.3.0-rc1~21^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12269%2Fhead;p=dealii.git Remove a destructor now no longer necessary. Leave the declaration in place but =default it, so that we continue to implement the rule of 7. --- diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index 4d48f7d433..4ae140b8e4 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -90,7 +90,7 @@ public: /** * Destructor. */ - ~AlignedVector(); + ~AlignedVector() = default; /** * Copy constructor. @@ -842,14 +842,6 @@ inline AlignedVector::AlignedVector(const size_type size, const T &init) -template -inline AlignedVector::~AlignedVector() -{ - clear(); -} - - - template inline AlignedVector::AlignedVector(const AlignedVector &vec) : elements(nullptr, [](T *) { Assert(false, ExcInternalError()); })