Skip to content

Commit

Permalink
Remove "Capping" note, closes #2236
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Dec 19, 2024
1 parent 8557755 commit e738bcc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -8031,11 +8031,6 @@ This rule is about using `final` on classes with virtual functions meant to be i

##### Note

Capping an individual virtual function with `final` is error-prone as `final` can easily be overlooked when defining/overriding a set of functions.
Fortunately, the compiler catches such mistakes: You cannot re-declare/re-open a `final` member in a derived class.

##### Note

Claims of performance improvements from `final` should be substantiated.
Too often, such claims are based on conjecture or experience with other languages.

Expand Down

0 comments on commit e738bcc

Please sign in to comment.