From 343f40792a6c7783bf0c9a4a96de48ebb04fe7fb Mon Sep 17 00:00:00 2001 From: Andrew Pardoe Date: Mon, 1 May 2017 15:32:28 -0700 Subject: [PATCH] Clarify I.11 with regards to recommending smart pointers/owner. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 139a115..836d1f9 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -1816,7 +1816,7 @@ so the default is "no ownership transfer." ##### Enforcement -* (Simple) Warn on `delete` of a raw pointer that is not an `owner`. +* (Simple) Warn on `delete` of a raw pointer that is not an `owner`. Suggest use of standard-library resource handle or use of `owner`. * (Simple) Warn on failure to either `reset` or explicitly `delete` an `owner` pointer on every code path. * (Simple) Warn if the return value of `new` or a function call with an `owner` return value is assigned to a raw pointer or non-`owner` reference.