]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add virtual destructor.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Apr 1998 14:09:37 +0000 (14:09 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 15 Apr 1998 14:09:37 +0000 (14:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@175 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/quadrature.h
deal.II/base/source/quadrature.cc

index cf56a1914df1bb4d2f4c977c1a4b4042c900d267..4d052cf7933acfc64a63dc22470c7a17816d7424 100644 (file)
@@ -38,6 +38,14 @@ class Quadrature {
                                      */
     Quadrature (const unsigned int n_quadrature_points);
     
+                                    /**
+                                     * Virtual destructor needed, since someone
+                                     * may want to use pointers to this class
+                                     * though the object pointed to is a derived
+                                     * class.
+                                     */
+    virtual ~Quadrature ();
+    
                                     /**
                                      * Return the #i#th quadrature point.
                                      */
index 187cd732666f96024e1ff9894a920827420c221a..6c3840e3d5e38b8b8969c00aa3b29064e4b16e9a 100644 (file)
@@ -11,6 +11,11 @@ Quadrature<dim>::Quadrature (const unsigned int n_q) :
 
 
 
+template <int dim>
+Quadrature<dim>::~Quadrature () {};
+
+
+
 template <int dim>
 const Point<dim> & Quadrature<dim>::quad_point (const unsigned int i) const {
   Assert (i<n_quadrature_points, ExcInvalidIndex(i, n_quadrature_points));

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.