From a6eb40c5a282d539f86c2f2337759418d156e30e Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 29 Oct 2020 11:57:25 -0700 Subject: [PATCH] Improved F.7 lifetime note; closes #1698 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index ab7de49..fe61697 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2804,7 +2804,7 @@ Passing a shared smart pointer (e.g., `std::shared_ptr`) implies a run-time cost ##### Note -We can catch dangling pointers statically, so we don't need to rely on resource management to avoid violations from dangling pointers. +We can catch many common cases of dangling pointers statically (see [lifetime safety profile](#SS-lifetime)). Function arguments naturally live for the lifetime of the function call, and so have fewer lifetime problems. ##### Enforcement