Skip to content

Commit cd729c4

Browse files
sdkrystianzygoloid
authored andcommitted
[expr.comma] Turn redundant normative wording into a note
1 parent 66f9fad commit cd729c4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source/expressions.tex

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6789,21 +6789,19 @@
67896789
right operand is a bit-field.
67906790

67916791
\pnum
6792-
In contexts where comma is given a special meaning,
6793-
\begin{example}
6794-
in
6795-
lists of arguments to functions\iref{expr.call} and lists of
6796-
initializers\iref{dcl.init}
6797-
\end{example}
6798-
the comma operator as
6799-
described in this subclause can appear only in parentheses.
6792+
\begin{note}
6793+
In contexts where the comma token is given special meaning
6794+
(e.g. function calls\iref{expr.call}, lists of initializers\iref{dcl.init},
6795+
or \grammarterm{template-argument-list}{s}\iref{temp.names}),
6796+
the comma operator as described in this subclause can appear only in parentheses.
68006797
\begin{example}
68016798
\begin{codeblock}
68026799
f(a, (t=3, t+2), c);
68036800
\end{codeblock}
68046801
has three arguments, the second of which has the value
68056802
\tcode{5}.
68066803
\end{example}
6804+
\end{note}
68076805

68086806
\pnum
68096807
\begin{note}

0 commit comments

Comments
 (0)