Skip to content

Commit 6429852

Browse files
committed
manual fixes for \opt{} removal
1 parent b55abc6 commit 6429852

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@
12891289
deduced~(\ref{dcl.spec.auto}).
12901290
\indextext{deduction!class template arguments}%
12911291
A \grammarterm{type-specifier} of the form
1292-
\tcode{typename}\opt{} \grammarterm{nested-name-specifier}\opt{} \grammarterm{template-name}
1292+
\opt{\tcode{typename}} \opt{\grammarterm{nested-name-specifier}} \grammarterm{template-name}
12931293
is a placeholder for a deduced class type
12941294
and shall appear only as a \grammarterm{decl-specifier}
12951295
in the \grammarterm{decl-specifier-seq}

source/declarators.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@
12621262
\tcode{D}
12631263
is
12641264
``\placeholder{derived-declarator-type-list}
1265-
\tcode{noexcept}\opt{}
1265+
\opt{\tcode{noexcept}}
12661266
function of
12671267
(\grammarterm{parameter-declaration-clause} )
12681268
\grammarterm{\opt{cv-qualifier-seq}} \grammarterm{\opt{ref-qualifier}}
@@ -1300,10 +1300,10 @@
13001300
\tcode{D}
13011301
is
13021302
``\placeholder{derived-declarator-type-list}
1303-
\tcode{noexcept}\opt{}
1303+
\opt{\tcode{noexcept}}
13041304
function of
13051305
(\grammarterm{parameter-declaration-clause})
1306-
\grammarterm{cv-qualifier-seq}\opt{} \grammarterm{ref-qualifier}\opt{}
1306+
\opt{\grammarterm{cv-qualifier-seq}} \opt{\grammarterm{ref-qualifier}}
13071307
returning \tcode{U}'',
13081308
where \tcode{U} is the type specified by
13091309
the \grammarterm{trailing-return-type}, and
@@ -2431,7 +2431,7 @@
24312431

24322432
\begin{bnf}
24332433
\nontermdef{braced-init-list}\br
2434-
\terminal{\{} initializer-list \terminal{,\opt{}} \terminal{\}}\br
2434+
\terminal{\{} initializer-list \opt{\terminal{,}} \terminal{\}}\br
24352435
\terminal{\{} \terminal{\}}
24362436
\end{bnf}
24372437

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@
616616

617617
\begin{bnf}
618618
\nontermdef{capture-list}\br
619-
capture \terminal{...\opt{}}\br
620-
capture-list \terminal{,} capture \terminal{...\opt{}}
619+
capture \opt{\terminal{...}}\br
620+
capture-list \terminal{,} capture \opt{\terminal{...}}
621621
\end{bnf}
622622

623623
\begin{bnf}

0 commit comments

Comments
 (0)