3 ms·
It only causes problems if you try to delete it via a pointer to the base class. If your base class doesn't have any virtual functions then it's very unlikely t
by plorkyeran 7y ago
It only causes problems if you try to delete it via a pointer to the base class. If your base class doesn't have any virtual functions then it's very unlikely that anyone would ever write code which tried to do that anyway, so it's not an issue.
A base class with virtual functions but a non-virtual destructor is what'll get you into trouble down the road.