Skip to content

Commit

Permalink
Add enforcement for C.35, closes #1831
Browse files Browse the repository at this point in the history
  • Loading branch information
hsutter committed Sep 30, 2021
1 parent 596f1ee commit e44a9fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CppCoreGuidelines.md
Expand Up @@ -5127,6 +5127,7 @@ We can imagine one case where you could want a protected virtual destructor: Whe
##### Enforcement

* A class with any virtual functions should have a destructor that is either public and virtual or else protected and non-virtual.
* If a class inherits publicly from a base class, the base class should have a destructor that is either public and virtual or else protected and non-virtual.

### <a name="Rc-dtor-fail"></a>C.36: A destructor must not fail

Expand Down

0 comments on commit e44a9fc

Please sign in to comment.