Movatterモバイル変換


[0]ホーム

URL:


Issue 22 - WG21 CWG Issues
Title
Template parameter with a default argument that refers to itself
Status
tc1
Section
13.8.4 [temp.dep.res]
Submitter
unknown

Created on1998-10-24.00:00:00 last changed277 months ago

Messages

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

Proposed Resolution (04/99):

[Note: the following wording will be superseded by theresolution ofissue 187, if approved.]

Change 14.1 temp.param paragraph 14 from:

Atemplate-parameter cannot be used in precedingtemplate-parameters or their default arguments.
to:
Atemplate-parameter cannot be used in precedingtemplate-parameters, in their default arguments, or in its own default argument.
msg54 (view)
Date: 2004-09-10.00:00:00

13.2 [temp.param] paragraph 13says:

The scope of atemplate-parameter extends from its point ofdeclaration until the end of its template. In particular, atemplate-parametercan be used in the declaration of subsequenttemplate-parameters and theirdefault arguments.
Is the following well-formed?
    template<class U = U> class X { ... };

[Note: this issue is resolved by the resolution ofissue 187.]

History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
1999-09-14 00:00:00adminsetmessages: +msg211
1999-09-14 00:00:00adminsetstatus: review -> dr
1998-10-24 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp