From b96d861fd11788aedfdc4fe3edab699f043c8421 Mon Sep 17 00:00:00 2001 From: Alessandro Gentilini Date: Thu, 10 Jun 2021 20:14:58 +0200 Subject: [PATCH] Add clarification at C.21 (#1792) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 268ecb4..8aae3cb 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4745,7 +4745,7 @@ into more expensive copies, or making a class move-only. // ... } -Given that "special attention" was needed for the destructor (here, to deallocate), the likelihood that copy and move assignment (both will implicitly destroy an object) are correct is low (here, we would get double deletion). +Given that "special attention" was needed for the destructor (here, to deallocate), the likelihood that copy and move assignment (which are generated by the compiler and both will implicitly destroy an object) are correct is low (here, we would get double deletion). ##### Note -- GitLab