[Solved] Named int vs named float

[ad_1]

The comment in the link says “integer, pointer and member pointer template parameters aren’t lvalues” (emphasis mine). It does not say that named integer variables are not lvalues – they are.

If there were such a thing as floating-point template parameters, then they wouldn’t be lvalues either; but named floating-point variables still would be.

[ad_2]

solved Named int vs named float