]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a destructor '=default'.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Aug 2017 16:54:22 +0000 (10:54 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Aug 2017 16:54:22 +0000 (10:54 -0600)
include/deal.II/lac/vector_memory.h

index 9dd0e4fe79bc903c7bedfd1f3c1ee26df6db0089..ee8b4c344d46df61c98dcedfd0b80510276b785a 100644 (file)
@@ -74,10 +74,11 @@ class VectorMemory : public Subscriptor
 public:
 
   /**
-   * Virtual destructor is needed as there are virtual functions in this
+   * Virtual destructor. This destructor is declared @p virtual to allow
+   * destroying objects of derived type through pointers to this base
    * class.
    */
-  virtual ~VectorMemory () {}
+  virtual ~VectorMemory () = default;
 
   /**
    * Return a pointer to a new vector. The number of elements or their

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.