constraints,template specialization,drop IFTI

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Jul 15 10:48:31 PDT 2009


On Wed, Jul 15, 2009 at 1:42 PM, BLS<windevguy at hotmail.de> wrote:
>
> Quote : "
> Constraints are not involved with determining which template is more
> specialized than another. "

Well that is *completely* lame.  I would have expected

template Foo(int N : 5)

to be sugar for

template Foo(int N) if(N == 5)

Why *isn't* that the case?



More information about the Digitalmars-d mailing list