Expanded F.19 enforcement to forward exactly once (issue 128)

This commit is contained in:
hsutter 2015-12-02 12:28:20 -08:00
parent 247be64de6
commit fe7a9dfe48

View File

@ -2353,7 +2353,7 @@ In that case, and only that case, make the parameter `TP&&` where `TP` is a temp
##### Enforcement ##### 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 ### <a name="Rf-out"></a> Rule F.20: For "out" output values, prefer return values to output parameters