← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH 5/5] Add virtual keyword to implicitly virtual functions

 

Hi,

On 06.03.2015 06:31, Mark Roszko wrote:

> I really don't agree with this patch with marking all the subclasses
> as virtual just because if the base class parameters ever change for a
> method the subclasses end up making entirely new functions. And you
> won't get any errors because it'll just call the base method no
> problem.

Which is not really worse than the current state -- the derived class's
method then becomes a non-virtual member function, and people call the
base version.

> If we did C++11 (which KiCad doesn't because Boost shoots itself in
> the head). Then virtual AND the override keyword make it entirely
> great and safe.

Yes, that would be great. Incidentally, this is how I verified the
current patch (compiling in C++11 mode with -Wsuggest-override).

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References