Is there any difference between “T” and “const T” in template parameter?

No.

ยง14.1 [temp.param] p5

[…] The top-level cv-qualifiers on the template-parameter are ignored when determining its type.

Leave a Comment