测试.h
class A
{
public:
virtual void FunctionA(void) = 0;
virtual ~A(void);
};
class B
{
public:
virtual void FunctionB(void) = 0;
virtual ~B(void);
};
class C:public A, public B
{
public:
virtual ~C(void) = 0;
};
测试.cpp
#include "test.h"
inline A::~A(void){}
inline B::~B(void){}
inline C::~C(void){}
为什么会有警告 C4505 'C:~C' : unreferenced local function has been removed ?