I\'m trying to compile the following simple C++ code using Clang-3.5:
test.h:
class A
{
public:
A();
virtual ~A() = 0;
};
This can be solved in three ways.
Use at least one virtual function which is not inline. Defining a virtual destructor is also alright as far as it is not an inline function.
Disable the warning as shown below.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wweak-vtables"
class ClassName : public Parent
{
...
};
#pragma clang diagnostic pop