From e738bcc73cb1f390c35fd3a952e9b0175dc6a9ba Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 19 Dec 2024 09:49:16 -1000 Subject: [PATCH] Remove "Capping" note, closes #2236 --- CppCoreGuidelines.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e93e8f8fd..e2f130a6f 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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.