From: guido Date: Thu, 31 May 2001 06:19:22 +0000 (+0000) Subject: destructor added X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7412cc54cfe329644adf8e09168003db45b65d8;p=dealii-svn.git destructor added git-svn-id: https://svn.dealii.org/trunk@4736 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/vector2d.h b/deal.II/base/include/base/vector2d.h index eb249eb1aa..53c270e538 100644 --- a/deal.II/base/include/base/vector2d.h +++ b/deal.II/base/include/base/vector2d.h @@ -75,6 +75,11 @@ class vector2d : public Subscriptor */ vector2d& operator = (const vector2d& src); + /** + * Destructor. Free allocated memory. + */ + ~vector2d (); + /** * Assignment operator. * Copy all elements of @p{src} @@ -212,6 +217,15 @@ class vector2d : public Subscriptor }; +template +inline +vector2d::~vector2d () +{ + if (val != 0) + delete[] val; +}; + + template inline void