This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 111. See for the official list.


2650. Incorrect example for ill-formed non-type template arguments

Section:  [temp.deduct.general]     Status: DRWP     Submitter: US     Date: 2022-11-03

P2720R0 comment US 28-068

[Accepted as a DR at the November, 2022 meeting.]

The example intends to illustrate that a class type cannot be the type of a non-type template parameter (although the example is still ill-formed because "T()" is interpreted as a function type).

Proposed resolution (approved by CWG 2022-11-08):

Change in [temp.deduct.general] bullet 11.8 as follows: