
16 Apr
2012
16 Apr
'12
11:08 p.m.
Emil Dotchevski wrote:
The meaning of virtual is "this function is designed to be called through a base type pointer". This is simply not true for this code, it would be misleading and incorrect to use virtual in this case.
Yes but a protected destructor can't be called, and making it virtual gets rid of the warning. Some battles are just not worth fighting.