|
6317 | 6317 | into the templated function, variable, or class |
6318 | 6318 | are two declarations of the same entity. |
6319 | 6319 | \begin{note} |
6320 | | -These declarations are required to have matching types as specified in~\ref{basic.link}, except as specified in~\ref{except.spec}. |
| 6320 | +These declarations need to have matching types as specified in~\ref{basic.link}, except as specified in~\ref{except.spec}. |
6321 | 6321 | \begin{example} |
6322 | 6322 | \begin{codeblock} |
6323 | 6323 | template<typename T> T var = {}; |
|
6367 | 6367 |
|
6368 | 6368 | \pnum |
6369 | 6369 | \begin{note} |
6370 | | -An explicit instantiation of a constrained template is required |
| 6370 | +An explicit instantiation of a constrained template needs |
6371 | 6371 | to satisfy that template's associated constraints\iref{temp.constr.decl}. |
6372 | 6372 | The satisfaction of constraints is determined |
6373 | 6373 | % FIXME: What is a "template name"? Does this mean "simple-template-id"? |
|
6514 | 6514 | An explicit specialization does not introduce a name\iref{basic.scope.scope}. |
6515 | 6515 | A declaration of a function template, class template, or variable template being explicitly |
6516 | 6516 | specialized shall be reachable from the declaration of |
6517 | | -the explicit |
6518 | | -specialization. |
| 6517 | +the explicit specialization. |
6519 | 6518 | \begin{note} |
6520 | | -A declaration, but not a definition of the template is required. |
| 6519 | +A declaration, but not a definition of the template is needed. |
6521 | 6520 | \end{note} |
6522 | 6521 | The definition of a class or class template shall be reachable from the |
6523 | 6522 | declaration of an explicit specialization for a member template of the class |
|
6708 | 6707 |
|
6709 | 6708 | \pnum |
6710 | 6709 | \begin{note} |
6711 | | -An explicit specialization of a constrained template is required |
| 6710 | +An explicit specialization of a constrained template needs |
6712 | 6711 | to satisfy that template's associated constraints\iref{temp.constr.decl}. |
6713 | 6712 | The satisfaction of constraints is determined |
6714 | 6713 | when forming the template name of an explicit specialization |
|
7305 | 7304 | invalid type or expression is one that would be ill-formed, with a diagnostic |
7306 | 7305 | required, if written in the same context using the substituted arguments. |
7307 | 7306 | \begin{note} |
7308 | | -If no |
7309 | | -diagnostic is required, the program is still ill-formed. Access checking is done |
7310 | | -as part of the substitution |
7311 | | -process. |
| 7307 | +If no diagnostic is required, the program is still ill-formed. |
| 7308 | +Access checking is done as part of the substitution process. |
7312 | 7309 | \end{note} |
7313 | 7310 | Invalid types and expressions can result in a deduction failure |
7314 | 7311 | only in the immediate context of the deduction substitution loci. |
|
0 commit comments