Skip to content

Commit ee444b5

Browse files
committed
[temp.class.spec.match] Strengthen wording for matching partial specializations
1 parent ea10e25 commit ee444b5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/templates.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3393,11 +3393,13 @@
33933393
\end{itemize}
33943394

33953395
\pnum
3396-
A partial specialization matches a given actual template argument
3397-
list if the template arguments of the partial specialization can be
3398-
deduced from the actual template argument list\iref{temp.deduct},
3399-
and the deduced template arguments satisfy the associated constraints
3396+
A class template partial specialization \defnx{matches}{specialization!matches}
3397+
the template argument list of a class template specialization \tcode{A} if, given the type \tcode{P}
3398+
formed by the \grammarterm{simple-template-id} of the partial specialization,
3399+
template argument deduction\iref{temp.deduct.type} for \tcode{P} from \tcode{A} would succeed
3400+
and the deduced template arguments would satisfy the associated constraints
34003401
of the partial specialization, if any\iref{temp.constr.decl}.
3402+
34013403
\begin{example}
34023404
\begin{codeblock}
34033405
template<class T1, class T2, int I> class A { }; // \#1

0 commit comments

Comments
 (0)