You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a base class destructor is declared virtual, one should avoid declaring derived class destructors virtual or override. Some code base and tools might insist on override for destructors, but that is not the recommendation of these guidelines.
Can please someone help me to figure out why a destructor in a derived calls should not be declared override if the destructor is declared virtual in the base class.
Actually, this looks to me to be in contrast to the example in rule C.128. Maybe it is worth to address it in a separate rule.
2BlackCoffees, pah, ricab, oracleoftroy, fcooper8472 and 1 more