Is there any difference between following 2 syntax:
template<int N> struct A; // (1)
and
template<const int N> struct A; // (2)
Any general guideline for when to use each syntax ?
No.
§14.1 [temp.param] p5
[...] The top-level cv-qualifiers on the template-parameter are ignored when determining its type.
1.4m articles
1.4m replys
5 comments
57.0k users