mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Update CppCoreGuidelines.md
Clarified the enforcement of C.121 according to #1368
This commit is contained in:
parent
7db3ad84ff
commit
ad30d9ee16
|
@ -6926,7 +6926,7 @@ Give `Goof` a virtual destructor and all is well.
|
|||
|
||||
##### 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user