From ac773e44d48087b9a8da8f99ad36250b5969ce8a Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 2 Dec 2015 12:18:18 -0800 Subject: [PATCH] Updated R.3 to refer to #Rf-out --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 63c5ae0..91877fa 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6572,7 +6572,7 @@ Returning a (raw) pointer imposes a life-time management uncertainty on the call delete p; } -In addition to suffering from the problem from [leak](#???), this adds a spurious allocation and deallocation operation, and is needlessly verbose. If Gadget is cheap to move out of a function (i.e., is small or has an efficient move operation), just return it "by value": +In addition to suffering from the problem from [leak](#???), this adds a spurious allocation and deallocation operation, and is needlessly verbose. If Gadget is cheap to move out of a function (i.e., is small or has an efficient move operation), just return it "by value" (see ["out" return values](#Rf-out)): Gadget make_gadget(int n) {