]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
struct U has virtual functions but nonvirtual destructor. calm the compiler
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jun 2005 18:45:05 +0000 (18:45 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Jun 2005 18:45:05 +0000 (18:45 +0000)
down by providing one.

git-svn-id: https://svn.dealii.org/trunk@10914 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/threads.pl

index a4cf5833582351da94f704ac7f8b7f777aaf3f09..20d9699f9672267013fd890749a082e07bc9bb86 100644 (file)
@@ -2,7 +2,7 @@
 #    $Id$
 #    Version: $Name$
 #
-#    Copyright (C) 2003, 2004 by the deal.II authors
+#    Copyright (C) 2003, 2004, 2005 by the deal.II authors
 #
 #    This file is subject to QPL and may not be  distributed
 #    without copyright and license information. Please refer
@@ -33,6 +33,7 @@ print "#include <fstream>\n";
 print "#include <iostream>\n";
 print "template <int> struct X {};\n";
 print "struct U {\n";
+print "  virtual ~U () {}\n";
 
 
 sub print_args {

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.