From 33adf1eedea0623bef0e9f686f6feea71c064a7a Mon Sep 17 00:00:00 2001 From: hsutter Date: Mon, 13 Mar 2017 11:48:22 -0700 Subject: [PATCH] Elaborated on #835. Incorporating @cubbimew's comments. Thanks! --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index dceff01..e7659a5 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -17924,7 +17924,7 @@ These types allow the user to distinguish between owning and non-owning pointers These "views" are never owners. -References are never owners. +References are never owners. Note: References have many opportunities to outlive the objects they refer to (returning a local variable by reference, holding a reference to an element of a vector and doing `push_back`, binding to `std::max(x,y+1)`, etc. The Lifetime safety profile aims to address those things, but even so `owner` does not make sense and is discouraged. The names are mostly ISO standard-library style (lower case and underscore):