Skip to content

Commit ff65cec

Browse files
jensmaurerzygoloid
authored andcommitted
Use 'trailing requires-clause'
where the requires-clause in a template-head is not meant. Fixes #1672.
1 parent 672bb60 commit ff65cec

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

source/declarators.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@
14721472
the \grammarterm{cv-qualifier-seq}, and
14731473
the exception specification,
14741474
but not the default arguments\iref{dcl.fct.default}
1475-
or \grammarterm{requires-clause}{s}\iref{temp},
1475+
or the trailing \grammarterm{requires-clause}\iref{dcl.decl},
14761476
are part of the function type.
14771477
\begin{note}
14781478
Function types are checked during the assignments and initializations of

source/derived.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@
687687
\end{example}
688688

689689
\pnum
690-
A virtual function shall not have a \grammarterm{requires-clause}.
690+
A virtual function shall not have a trailing \grammarterm{requires-clause}\iref{dcl.decl}.
691691
\begin{example}
692692
\begin{codeblock}
693693
struct A {

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@
643643
\pnum
644644
A program that refers
645645
explicitly or implicitly
646-
to a function with a \grammarterm{requires-clause}
646+
to a function with a trailing \grammarterm{requires-clause}
647647
whose \grammarterm{constraint-expression} is not satisfied,
648648
other than to declare it,
649649
is ill-formed.

source/intro.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
parameter type list\iref{dcl.fct},
220220
enclosing namespace (if any),
221221
and
222-
\grammarterm{requires-clause}\iref{temp.constr.decl} (if any)
222+
trailing \grammarterm{requires-clause}\iref{dcl.decl} (if any)
223223

224224
\begin{defnote}
225225
Signatures are used as a basis for
@@ -235,7 +235,7 @@
235235
return type,
236236
\grammarterm{template-head},
237237
and
238-
\grammarterm{requires-clause}\iref{temp.constr.decl} (if any)
238+
trailing \grammarterm{requires-clause}\iref{dcl.decl} (if any)
239239

240240
\indexdefn{signature}%
241241
\definition{signature}{defns.signature.spec}
@@ -251,7 +251,7 @@
251251
\cv-qualifiers (if any),
252252
\grammarterm{ref-qualifier} (if any),
253253
and
254-
\grammarterm{requires-clause}\iref{temp.constr.decl} (if any)
254+
trailing \grammarterm{requires-clause}\iref{dcl.decl} (if any)
255255

256256
\indexdefn{signature}%
257257
\definition{signature}{defns.signature.member.templ}
@@ -264,7 +264,7 @@
264264
return type (if any),
265265
\grammarterm{template-head},
266266
and
267-
\grammarterm{requires-clause}\iref{temp.constr.decl} (if any)
267+
trailing \grammarterm{requires-clause}\iref{dcl.decl} (if any)
268268

269269
\indexdefn{signature}%
270270
\definition{signature}{defns.signature.member.spec}

source/overloading.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
\pnum
310310
Two function declarations of the same name refer to the same function if they
311311
are in the same scope and have equivalent parameter declarations\iref{over.load}
312-
and equivalent \grammarterm{requires-clause}{s}, if any\iref{temp.constr.decl}.
312+
and equivalent trailing \grammarterm{requires-clause}{s}, if any\iref{dcl.decl}.
313313
A function member of a derived class is
314314
\textit{not}
315315
in the same scope as a function member of the same name in a base class.

0 commit comments

Comments
 (0)