From fe7a9dfe48f5eebf437688d615f23479a22391ec Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 2 Dec 2015 12:28:20 -0800 Subject: [PATCH] Expanded F.19 enforcement to forward exactly once (issue 128) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 3ae7e85..372bc13 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2353,7 +2353,7 @@ In that case, and only that case, make the parameter `TP&&` where `TP` is a temp ##### Enforcement -* Flag a function that takes a `TP&&` parameter (where `TP` is a template type parameter name) and uses it without `std::forward`. +* Flag a function that takes a `TP&&` parameter (where `TP` is a template type parameter name) and does anything with it other than `std::forward`ing it exactly once on every static path. ### Rule F.20: For "out" output values, prefer return values to output parameters