mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
Update CppCoreGuidelines.md
Clarified the enforcement of C.121 according to #1368
This commit is contained in:
@@ -6926,7 +6926,7 @@ Give `Goof` a virtual destructor and all is well.
|
|||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
* Warn on any class that contains data members and also has an overridable (non-`final`) virtual function.
|
* Warn on any class that contains data members and also has an overridable (non-`final`) virtual function tht wasn't inherited from a base class.
|
||||||
|
|
||||||
### <a name="Rh-separation"></a>C.122: Use abstract classes as interfaces when complete separation of interface and implementation is needed
|
### <a name="Rh-separation"></a>C.122: Use abstract classes as interfaces when complete separation of interface and implementation is needed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user