mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Add enforcement for C.35, closes #1831
This commit is contained in:
parent
596f1ee227
commit
e44a9fcbd4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user