From 029badc30b355baabebdfefdfecdfd41b85900a3 Mon Sep 17 00:00:00 2001 From: wolf Date: Sun, 12 Dec 1999 13:11:56 +0000 Subject: [PATCH] Make destructor virtual. git-svn-id: https://svn.dealii.org/trunk@2043 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/deal.II/lac/include/lac/vector.h b/deal.II/lac/include/lac/vector.h index 6bdcaeb6e3..bf80c73775 100644 --- a/deal.II/lac/include/lac/vector.h +++ b/deal.II/lac/include/lac/vector.h @@ -16,13 +16,6 @@ /** * Vector of data. - * Memory for Components is supplied explicitly

- * ( ! Amount of memory needs not to comply with actual dimension due to reinitializations ! )

- * - all necessary methods for Vectors are supplied

- * - operators available are `=` , `*` and `( )`

- * CONVENTIONS for used `equations` :

- * - THIS vector is always named `U`

- * - vectors are always uppercase , scalars are lowercase * * @author Roland Becker, Guido Kanschat, Franz-Theo Suttmeier, revised and extended by Wolfgang Bangerth, documented by Klaus Mampel and Wolfgang Bangerth */ @@ -86,9 +79,12 @@ class Vector { Vector (const unsigned int n); /** - * Destructor. Clears memory + * Destructor, deallocates + * memory. Made virtual to allow + * for derived classes to behave + * properly. */ - ~Vector (); + virtual ~Vector (); /** * Set all entries to zero. Equivalent to -- 2.39.5