You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each template-declaration D introduces a template parameter scope that extends from the beginning of its template-parameter-list to the end of the template-declaration. Any declaration outside the template-parameter-list that would inhabit that scope instead inhabits the same scope as D.
According to [basic.scope#scope-2]
A declaration inhabits the immediate scope at its locus ([basic.scope.pdecl]).
However, we didn't specify the locus of a template-declaration. The note [basic.scope#scope-2.8] also depends on the scope template-declaration inhabits
The declaration in a template-declaration inhabits the same scope as the template-declaration.
The text was updated successfully, but these errors were encountered:
xmh0511
changed the title
[basic.scope.temp] p2 What does "that scope" mean?
[basic.scope.temp] p2 What is "the scope D inhabits"?
Sep 24, 2021
[basic.scope.temp] p2
According to [basic.scope#scope-2]
However, we didn't specify the locus of a template-declaration. The note [basic.scope#scope-2.8] also depends on the scope template-declaration inhabits
The text was updated successfully, but these errors were encountered: