Movatterモバイル変換


[0]ホーム

URL:


This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-11-05


468. Allow::template outside of templates

Section:13.3  [temp.names]    Status:CD1    Submitter:John Spicer    Date:9 Apr 2004

[Voted into WP at the October, 2006 meeting.]

For the same reasons thatissue 382proposes for relaxation of the requirements ontypename,it would make sense to allow the::template disambiguatoroutside of templates.

See also issues11,30,96, and109.

Proposed resolution (October, 2005):

Change 13.3 [temp.names] paragraph 5 as indicated:

If a name prefixed by the keywordtemplate is not the name ofa template, the program is ill-formed. [Note: thekeywordtemplate may not be applied to non-template membersof class templates. —end note]Furthermore, names ofmember templates shall not be prefixed by thekeywordtemplate if thepostfix-expressionorqualified-id does not appear in the scope of a template.[Note: just as is the case with thetypename prefix,thetemplate prefix is allowed in cases where it is notstrictly necessary; i.e., whenthenested-name-specifieror the expression on the left of the->or., or thenested-name-specifier is notdependent on atemplate-parameter, or the use does notappear in the scope of a template. —end note]



[8]ページ先頭

©2009-2025 Movatter.jp