From 907de2aa4c2647e09307107a18100869449a3a1b Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Tue, 21 Mar 2017 14:19:31 -0700 Subject: [PATCH] Corrected mistake in enforcement for R.3. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 90332ef..f8b831b 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8263,7 +8263,7 @@ If pointer semantics are required (e.g., because the return type needs to refer * (Simple) Warn on `delete` of a raw pointer that is not an `owner`. * (Moderate) 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 return value of pointer type is assigned to a raw pointer. +* (Simple) Warn if the return value of `new` is assigned to a raw pointer. * (Simple) Warn if a function returns an object that was allocated within the function but has a move constructor. Suggest considering returning it by value instead.