From d6ed6dac06ff46f99b0cdf637dc4fdce4dbbd67d Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Wed, 26 Dec 2007 11:03:17 +0000 Subject: [PATCH] Fix 'class has virtual functions but non-virtual destructor' warning --- examples/foo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/foo.h b/examples/foo.h index 97145b6..a755643 100644 --- a/examples/foo.h +++ b/examples/foo.h @@ -453,7 +453,7 @@ inline CannotBeConstructed* get_cannot_be_constructed_ptr () { class AbstractBaseClass { public: - ~AbstractBaseClass () {} + virtual ~AbstractBaseClass () {} protected: // A pure virtual method with a parameter type so strange that it @@ -469,7 +469,7 @@ protected: class AbstractBaseClassImpl : public AbstractBaseClass { public: - ~AbstractBaseClassImpl () {} + virtual ~AbstractBaseClassImpl () {} // -#- @return(caller_owns_return=true) -#- static AbstractBaseClass* get_abstract_base_class_ptr1 ()