In order to define a pure virtual method, you need a separate definition from the declaration.
Therefore:
struct X {
virtual ~X() = 0;
};
X::~X() = default;
In order to define a pure virtual method, you need a separate definition from the declaration.
Therefore:
struct X {
virtual ~X() = 0;
};
X::~X() = default;