Skip to content

Commit

Permalink
Update standard/expressions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Oct 2, 2022
1 parent 6e2316f commit 5423185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ The corresponding parameters for function member arguments are established as fo
- For user-defined unary operators (including conversions), the single operand corresponds to the single parameter of the operator declaration.
- For user-defined binary operators, the left operand corresponds to the first parameter, and the right operand corresponds to the second parameter of the operator declaration.
- An unnamed argument corresponds to no parameter when it is after an out-of-position named argument or a named params argument.
> *Note*: This prevents `void M(bool a = true, bool b = true, bool c = true, );` being invoked by `M(c: false, valueB);`. The first argument is used out-of-position (the argument is used in first position, but the parameter named `c` is in third position), so the following arguments should be named. In other words, non-trailing named arguments are only allowed when the name and the position result in finding the same corresponding parameter. *end note*
> *Note*: This prevents `void M(bool a = true, bool b = true, bool c = true );` being invoked by `M(c: false, valueB);`. The first argument is used out-of-position (the argument is used in first position, but the parameter named `c` is in third position), so the following arguments should be named. In other words, non-trailing named arguments are only allowed when the name and the position result in finding the same corresponding parameter. *end note*
#### 11.6.2.3 Run-time evaluation of argument lists
Expand Down

0 comments on commit 5423185

Please sign in to comment.