3 ms·
>Widely repeated, yet wrong. Not right, either. Personally, I wouldn't inherit from a class that didn't have a virtual destructor unless I had a good reason.
by BeetleB 7y ago
>Widely repeated, yet wrong.
Not right, either.
Personally, I wouldn't inherit from a class that didn't have a virtual destructor unless I had a good reason. The point isn't whether it is right or wrong. Stating it as wrong is as problematic as stating it as right. The point is that whether it is OK to do it or not is an opinion, not a fact, and should be discussed as such.
- blt 7y agoyou are right, I was trying to say the "never" part is wrong but of course there is a good reason behind the advice; it's not pure bullshit.