Are some difference between virtual destructor and pure virtual destructor? In my design I always used pure virtual destructor:
class MyInterface {
public:
virtual ~MyInterface() = 0;
virtual void doA() const = 0;
virtual void doB( int ) = 0;
};
inline MyInterface::~MyInterface {}
Well I know why the dctor must be virtual but I don't understand the difference with this:
class MyInterface {
public:
virtual ~MyInterface() {}
virtual void doA() const = 0;
virtual void doB( int ) = 0;
};