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

后端 未结 3 923
借酒劲吻你
借酒劲吻你 2020-12-03 20:56

Is there any difference between following 2 syntax:

template struct A;         // (1)

and

template

        
3条回答
  •  温柔的废话
    2020-12-03 21:03

    No.

    §14.1 [temp.param] p5

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

提交回复
热议问题