Partial specialization of function templates

后端 未结 2 813
刺人心
刺人心 2020-12-03 05:27

Does anyone know whether, in C++11, function templates can be partially specialized?

相关标签:
2条回答
  • 2020-12-03 05:42

    No; they were proposed as core language issue #229 (from n1295) but ultimately rejected (and quite rightly so, since overloading does the job).

    0 讨论(0)
  • 2020-12-03 05:53

    No, they can't. The draft C++0x standard has a section (14.5.5) on class template partial specialisations, but no mention of function template partial specialisations.

    0 讨论(0)
提交回复
热议问题