2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 18:52:26 +00:00

Silence compiler by adding cosmetic virtual destructors.

[SVN r41549]
This commit is contained in:
Jürgen Hunold
2007-12-01 20:24:51 +00:00
parent ab0911cf53
commit 40e4940877
4 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ struct A {};
struct V
{
virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
const A* inside() {return &a;}

View File

@@ -7,6 +7,7 @@
struct V
{
virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
};

View File

@@ -24,6 +24,7 @@ X make_x(int n) { return X(n); }
struct bar {};
struct foo
{
virtual ~foo() {}; // silence compiler warnings
virtual void f() = 0;
operator bar() const { return bar(); }
};

View File

@@ -10,6 +10,7 @@ using namespace boost::python;
class Abstract
{
public:
virtual ~Abstract() {}; // silence compiler warningsa
virtual std::string f() =0;
};