I like to use gcc compiler warning -Wsuggest-final-types, which gives valuable information about which classes could be marked as final. Unfortunately, it also causes this warning for some base classes, which I explicitly created to be derived from (with virtual destructor and some other virtual methods, but no abstract methods). Is there a possibility to mark them in a way that the compiler does not emit this warning/suggestion (and also signal to other developers that they are meant to be derived from)?
Aucun commentaire:
Enregistrer un commentaire