From d45496ff5ec1334fe804f69c77beffe22ed8271a Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Mon, 20 Apr 2020 08:59:37 -0400 Subject: [PATCH] You should never =delete a destructor! (#1605) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 93ce685..f09767f 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4492,7 +4492,7 @@ Destructor rules: * [C.30: Define a destructor if a class needs an explicit action at object destruction](#Rc-dtor) * [C.31: All resources acquired by a class must be released by the class's destructor](#Rc-dtor-release) * [C.32: If a class has a raw pointer (`T*`) or reference (`T&`), consider whether it might be owning](#Rc-dtor-ptr) -* [C.33: If a class has an owning pointer member, define or `=delete` a destructor](#Rc-dtor-ptr2) +* [C.33: If a class has an owning pointer member, define a destructor](#Rc-dtor-ptr2) * [C.35: A base class destructor should be either public and virtual, or protected and non-virtual](#Rc-dtor-virtual) * [C.36: A destructor may not fail](#Rc-dtor-fail) * [C.37: Make destructors `noexcept`](#Rc-dtor-noexcept)