Update CppCoreGuidelines.md

Clarified the enforcement of C.121 according to #1368
This commit is contained in:
Bjarne Stroustrup 2019-12-08 17:36:43 -05:00
parent 7db3ad84ff
commit ad30d9ee16

View File

@ -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