From Jason Turner

[expr.comma]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpi7ouorsc/{from.md → to.md} +8 -10
tmp/tmpi7ouorsc/{from.md → to.md} RENAMED
@@ -14,27 +14,25 @@ left expression is sequenced before the right expression
14
  [[intro.execution]]. The type and value of the result are the type and
15
  value of the right operand; the result is of the same value category as
16
  its right operand, and is a bit-field if its right operand is a
17
  bit-field.
18
 
19
- In contexts where comma is given a special meaning,
20
 
21
- [*Example 1*: in lists of arguments to functions [[expr.call]] and
22
- lists of initializers [[dcl.init]] *end example*]
 
 
 
23
 
24
- the comma operator as described in this subclause can appear only in
25
- parentheses.
26
-
27
- [*Example 2*:
28
 
29
  ``` cpp
30
  f(a, (t=3, t+2), c);
31
  ```
32
 
33
  has three arguments, the second of which has the value `5`.
34
 
35
  — *end example*]
36
 
37
- [*Note 1*: A comma expression appearing as the
38
- *expr-or-braced-init-list* of a subscripting expression [[expr.sub]] is
39
- deprecated; see [[depr.comma.subscript]]. — *end note*]
40
 
 
14
  [[intro.execution]]. The type and value of the result are the type and
15
  value of the right operand; the result is of the same value category as
16
  its right operand, and is a bit-field if its right operand is a
17
  bit-field.
18
 
19
+ [*Note 1*:
20
 
21
+ In contexts where the comma token is given special meaning (e.g.,
22
+ function calls [[expr.call]], subscript expressions [[expr.sub]], lists
23
+ of initializers [[dcl.init]], or *template-argument-list*s
24
+ [[temp.names]]), the comma operator as described in this subclause can
25
+ appear only in parentheses.
26
 
27
+ [*Example 1*:
 
 
 
28
 
29
  ``` cpp
30
  f(a, (t=3, t+2), c);
31
  ```
32
 
33
  has three arguments, the second of which has the value `5`.
34
 
35
  — *end example*]
36
 
37
+ *end note*]
 
 
38