Skip to content

Commit 1de6c61

Browse files
jensmaurerzygoloid
authored andcommitted
[temp.type,temp.over.link] Define and use 'same template-id'.
1 parent 1a4e37c commit 1de6c61

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

source/templates.tex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,8 +1944,7 @@
19441944

19451945
\pnum
19461946
\indextext{equivalence!template type}%
1947-
Two \grammarterm{template-id}{s} refer to the same
1948-
class, function, or variable if
1947+
Two \grammarterm{template-id}{s} are the same if
19491948
\begin{itemize}
19501949
\item
19511950
their \grammarterm{template-name}{s},
@@ -1966,6 +1965,8 @@
19661965
their corresponding template \grammarterm{template-argument}{s}
19671966
refer to the same template.
19681967
\end{itemize}
1968+
Two \grammarterm{template-id}{s} that are the same
1969+
refer to the same class, function, or variable.
19691970

19701971
\pnum
19711972
Two values are \defn{template-argument-equivalent} if
@@ -3633,9 +3634,7 @@
36333634
except that the tokens used to name types and declarations may differ
36343635
as long as they name the same entities, and
36353636
the tokens used to form concept-ids may differ
3636-
as long as the two \grammarterm{template-id}{s}
3637-
would be considered to name the same type if,
3638-
instead of a concept, a class template were named.
3637+
as long as the two \grammarterm{template-id}{s} are the same\iref{temp.type}.
36393638
\begin{note}
36403639
For instance, \tcode{A<42>} and \tcode{A<40+2>} name the same type.
36413640
\end{note}

0 commit comments

Comments
 (0)