Movatterモバイル変換


[0]ホーム

URL:


Issue 32 - WG21 CWG Issues
Title
Clarification of explicit instantiation of non-exported templates
Status
tc1
Section
Clause [13] [temp]
Submitter
Daveed Vandevoorde

Created on1998-07-10.00:00:00 last changed277 months ago

Messages

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

Proposed Resolution (04/99):Change the text in Clause 13 [temp] paragraph 8from:

A non-exported template that is neither explicitly specializednor explicitly instantiated must be defined in every translation unit inwhich it is implicitly instantiated (13.9.2 [temp.inst]) or explicitly instantiated(13.9.3 [temp.explicit]); no diagnostic is required.
to:
A non-exported template must be defined in every translationunit in which it is implicitly instantiated (13.9.2 [temp.inst]), unless the correspondingspecialization is explicitly instantiated (13.9.3 [temp.explicit]) in some translationunit; no diagnostic is required. [Note: See also 13.9.3 [temp.explicit]]
msg51 (view)
Date: 2022-11-20.07:54:16

Section Clause 13 [temp] paragraph 8says:

A non-exported template that is neither explicitly specializednor explicitly instantiated must be defined in every translationunit in which it is implicitly instantiated (13.9.2 [temp.inst]) orexplicitlyinstantiated (13.9.3 [temp.explicit]); no diagnostic is required.
Shouldn't the first underlined phrase be omitted to avoid conflict withthe second underlined phrase?

From John Spicer:

The first "explicitly instantiated" is intended to mean "explicitly instantiatedin some other translation unit".

Proposed Resolution (04/99):Change the text in Clause 13 [temp] paragraph 8from:

A non-exported template that is neither explicitly specializednor explicitly instantiated must be defined in every translation unit inwhich it is implicitly instantiated (13.9.2 [temp.inst]) or explicitly instantiated(13.9.3 [temp.explicit]); no diagnostic is required.
to:
A non-exported template must be defined in every translationunit in which it is implicitly instantiated (13.9.2 [temp.inst]), unless the correspondingspecialization is explicitly instantiated (13.9.3 [temp.explicit]) in some translationunit; no diagnostic is required. [Note: See also 13.9.3 [temp.explicit]]
History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
1999-09-14 00:00:00adminsetmessages: +msg208
1999-09-14 00:00:00adminsetstatus: review -> dr
1998-07-10 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp