mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Expanded F.19 enforcement to forward exactly once (issue 128)
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
### <a name="Rf-out"></a> Rule F.20: For "out" output values, prefer return values to output parameters
|
||||
|
||||
Reference in New Issue
Block a user