Skip to content

Commit ae99cc6

Browse files
committed
Make F.16 consistent, closes #2324
1 parent 431d25d commit ae99cc6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CppCoreGuidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3037,10 +3037,11 @@ If you need the notion of an optional value, use a pointer, `std::optional`, or
30373037

30383038
##### Enforcement
30393039

3040-
* (Simple) ((Foundation)) Warn when a parameter being passed by value has a size greater than `2 * sizeof(void*)`.
3040+
* (Simple) ((Foundation)) Warn when a parameter being passed by value has a size greater than `4 * sizeof(void*)`.
30413041
Suggest using a reference to `const` instead.
30423042
* (Simple) ((Foundation)) Warn when a parameter passed by reference to `const` has a size less or equal than `2 * sizeof(void*)`. Suggest passing by value instead.
30433043
* (Simple) ((Foundation)) Warn when a parameter passed by reference to `const` is `move`d.
3044+
* (Not simple) Note: A stricter enforcement would depend on the performance characteristics of the target architecture.
30443045

30453046
##### Exception
30463047

0 commit comments

Comments
 (0)