Skip to content

Commit a67162a

Browse files
committed
P4004R1 Reconsider CWG 1395 "Partial ordering of variadic templates reconsidered"
1 parent fda5e37 commit a67162a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/templates.tex

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8780,18 +8780,16 @@
87808780
\end{itemize}
87818781

87828782
\pnum
8783-
Using the resulting types
8784-
\tcode{P}
8785-
and
8786-
\tcode{A},
8783+
If \tcode{A} was transformed from a function parameter pack and
8784+
\tcode{P} is not a parameter pack,
8785+
type deduction fails.
8786+
Otherwise, using the resulting types \tcode{P} and \tcode{A},
87878787
the deduction is then done as described in~\ref{temp.deduct.type}.
87888788
If \tcode{P} is a function parameter pack, the type \tcode{A} of each remaining
87898789
parameter type of the argument template is compared with the type \tcode{P} of
87908790
the \grammarterm{declarator-id} of the function parameter pack. Each comparison
87918791
deduces template arguments for subsequent positions in the template parameter
87928792
packs expanded by the function parameter pack.
8793-
Similarly, if \tcode{A} was transformed from a function parameter pack,
8794-
it is compared with each remaining parameter type of the parameter template.
87958793
If deduction succeeds for a given type,
87968794
the type from the argument template is considered to be at least as specialized
87978795
as the type from the parameter template.

0 commit comments

Comments
 (0)