CWG Issue 343 (original) (raw)

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


343. Make template optional in contexts that require a type

Section: 13.3 [temp.names]Status: C++17Submitter: Steve AdamczykDate: 23 April 2002

[Adopted at the February/March, 2017 meeting.]

By analogy with typename, the keyword templateused to indicate that a dependent name will be a template name should be optional in contexts where a type is required, e.g., base class lists. We could also consider member and parameter declarations.

This was suggested by issue 314.

Additional note (January, 2014):

See also issue 1710.

Proposed resolution (March, 2017):

This issue is resolved by the resolution ofissue 1710.