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()".
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()".