2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

Silence compiler by adding cosmetic virtual destructors.

[SVN r41544]
This commit is contained in:
Jürgen Hunold
2007-12-01 19:27:06 +00:00
parent 0d81eb6695
commit ab0911cf53
2 changed files with 2 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ shared_ptr<Y> factory(int n)
// 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(); }
};