Skip to content

Commit bc86100

Browse files
burblebeetkoeppe
authored andcommitted
LWG3892 Incorrect formatting of nested ranges and tuples
1 parent 4ed5a13 commit bc86100

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/utilities.tex

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15735,7 +15735,7 @@
1573515735

1573615736
\begin{ncbnf}
1573715737
\fmtnontermdef{format-spec}\br
15738-
\textnormal{as specified by the \tcode{formatter} specialization for the argument type}
15738+
\textnormal{as specified by the \tcode{formatter} specialization for the argument type; cannot start with \terminal{\}} }
1573915739
\end{ncbnf}
1574015740

1574115741
\pnum
@@ -16784,7 +16784,7 @@
1678416784
\fmtgrammarterm{format-spec}\iref{format.string}
1678516785
of the replacement field being formatted
1678616786
in the format string.
16787-
If \fmtgrammarterm{format-spec} is empty then either
16787+
If \fmtgrammarterm{format-spec} is not present or empty then either
1678816788
\tcode{pc.begin() == pc.end()} or
1678916789
\tcode{*pc.begin() == '\}'}.
1679016790

@@ -17758,8 +17758,11 @@
1775817758
\begin{itemdescr}
1775917759
\pnum
1776017760
\effects
17761-
Parses the format specifier as a \fmtgrammarterm{range-format-spec} and
17761+
Parses the format specifiers as a \fmtgrammarterm{range-format-spec} and
1776217762
stores the parsed specifiers in \tcode{*this}.
17763+
Calls \tcode{\exposid{underlying_}.parse(ctx)} to parse
17764+
\fmtgrammarterm{format-spec} in \fmtgrammarterm{range-format-spec} or,
17765+
if the latter is not present, an empty \fmtgrammarterm{format-spec}.
1776317766
The values of
1776417767
\exposid{opening-bracket_}, \exposid{closing-bracket_}, and \exposid{separator_}
1776517768
are modified if and only if required by
@@ -18602,7 +18605,7 @@
1860218605
\begin{itemdescr}
1860318606
\pnum
1860418607
\effects
18605-
Parses the format specifier as a \fmtgrammarterm{tuple-format-spec} and
18608+
Parses the format specifiers as a \fmtgrammarterm{tuple-format-spec} and
1860618609
stores the parsed specifiers in \tcode{*this}.
1860718610
The values of
1860818611
\exposid{opening-bracket_},
@@ -18611,6 +18614,8 @@
1861118614
are modified if and only if
1861218615
required by the \fmtgrammarterm{tuple-type}, if present.
1861318616
For each element \tcode{\placeholder{e}} in \exposid{underlying_},
18617+
calls \tcode{\placeholder{e}.parse(ctx)} to parse
18618+
an empty \fmtgrammarterm{format-spec} and,
1861418619
if \tcode{\placeholder{e}.set_debug_format()} is a valid expression,
1861518620
calls \tcode{\placeholder{e}.set_debug_format()}.
1861618621

0 commit comments

Comments
 (0)