开发者

Partial specialization of function templates

开发者 https://www.devze.com 2023-01-16 01:04 出处:网络
Does anyone know whether, in C++开发者_运维知识库11, function templates can be partially specialized?No, they can\'t. The draft C++0x standard has a section (14.5.5) on class template partial speciali

Does anyone know whether, in C++开发者_运维知识库11, function templates can be partially specialized?


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消