[cfe-dev] Is it permitted to explicitly specialize a deleted function template?

Alexander Korsunsky fat.lobyte9 at gmail.com
Sun Mar 11 03:05:34 PDT 2012


> 
> The N2346 default/delete proposal says that "One can define a template with a deleted definition. Specialization and argument deduction occur as they would with a regular template function, but explicit specialization is not permitted." and proposes editing 14.7.3 to allow an explicit specialization to declare only non-deleted function templates.  But N3242 at least didn't make this change (I don't have the final spec), so I'm guessing this is a clang bug but don't know.  Who's right?

FYI, this is a version of the standard with minor editorial changes
released AFTER the standardzation:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3337.pdf

It looks like the changes from N2346 didn't make it in.

Alexander



More information about the cfe-dev mailing list