Movatterモバイル変換


[0]ホーム

URL:


Issue 30 - WG21 CWG Issues
Title
Valid uses of "::template"
Status
tc1
Section
13.3 [temp.names]
Submitter
Daveed Vandevoorde

Created on1998-05-28.00:00:00 last changed277 months ago

Messages

msg210 (view)
Date: 1999-04-15.00:00:00

Proposed Resolution (04/99):Append to 13.3 [temp.names] paragraph 5:

Furthermore, names of member templates shall not be prefixedby the keywordtemplate if thepostfix-expression orqualified-iddoes not appear in the scope of a template. [Note: just as is the casewith thetypename prefix, thetemplate prefix is allowedin cases where it is not strictly necessary; i.e., when the expressionon the left of the-> or., or thenested-name-specifieris not dependent on atemplate-parameter. ]
msg55 (view)
Date: 2022-11-20.07:54:16

I have a request for clarification regarding a issue similar to JohnWiegley's, but wrt. the::template syntax. More precisely, whereis

    X::template Y
allowed? (It is required for dependentX whereY is atemplate-id, I believe, but it doesn't seem to be disallowed elsewhere.)

The question also holds for '.template' and '->template'.

Proposed Resolution (04/99):Append to 13.3 [temp.names] paragraph 5:

Furthermore, names of member templates shall not be prefixedby the keywordtemplate if thepostfix-expression orqualified-iddoes not appear in the scope of a template. [Note: just as is the casewith thetypename prefix, thetemplate prefix is allowedin cases where it is not strictly necessary; i.e., when the expressionon the left of the-> or., or thenested-name-specifieris not dependent on atemplate-parameter. ]
History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
1999-09-14 00:00:00adminsetmessages: +msg210
1999-09-14 00:00:00adminsetstatus: drafting -> dr
1998-05-28 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp