Boost logo

Boost-Commit :

From: juergen.hunold_at_[hidden]
Date: 2007-12-01 14:27:07


Author: jhunold
Date: 2007-12-01 14:27:06 EST (Sat, 01 Dec 2007)
New Revision: 41544
URL: http://svn.boost.org/trac/boost/changeset/41544

Log:
Silence compiler by adding cosmetic virtual destructors.

Text files modified:
   trunk/libs/python/test/shared_ptr.cpp | 1 +
   trunk/libs/python/test/wrapper_held_type.cpp | 1 +
   2 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/libs/python/test/shared_ptr.cpp
==============================================================================
--- trunk/libs/python/test/shared_ptr.cpp (original)
+++ trunk/libs/python/test/shared_ptr.cpp 2007-12-01 14:27:06 EST (Sat, 01 Dec 2007)
@@ -129,6 +129,7 @@
 // regressions from Nicodemus
     struct A
     {
+ virtual ~A() {}; // silence compiler warnings
         virtual int f() = 0;
         static int call_f(shared_ptr<A>& a) { return a->f(); }
     };

Modified: trunk/libs/python/test/wrapper_held_type.cpp
==============================================================================
--- trunk/libs/python/test/wrapper_held_type.cpp (original)
+++ trunk/libs/python/test/wrapper_held_type.cpp 2007-12-01 14:27:06 EST (Sat, 01 Dec 2007)
@@ -13,6 +13,7 @@
 
 struct data
 {
+ virtual ~data() {}; // silence compiler warnings
     virtual int id() const
     {
         return 42;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk