Partial specialization of function templates

Does anyone know if C ++ 11 function templates can partially specialize?

+19
c ++ c ++ 11 templates partial-specialization
Sep 15. '10 at 10:38
source share
2 answers

No, they cannot. The draft C ++ 0x standard has a section (14.5.5) on partial specializations of a template template, but no mention is made of partial specializations of function templates.

+14
Sep 15 '10 at 10:53
source share

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

-one
Apr 10 '13 at 14:25
source share



All Articles