cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

US 28-068 13.10.3.1p11.8 [temp.deduct.general] Fix example for non-type template parameters #500

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

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 change:

Use a different type, perhaps a non-structural class type or an rvalue reference type. Fix the use of "T()".

jensmaurer commented 1 year ago

CWG2650

jensmaurer commented 1 year ago

CWG 2022-11-08: Accepted.