On Mon, 01 Jul 2013 14:15:04 -0400, Ali Çehreli <acehr...@yahoo.com> wrote:

I think main's second line used to work:

template isSmall(T)
{
     enum isSmall = (T.sizeof < 12345);
}

void main()
{
     static assert(isSmall!int);          // <-- the usual syntax works

     static assert(isSmall!int.isSmall);  // <-- compilation ERROR
}

Error: template deneme.isSmall does not match any function template declaration. Candidates are:
        deneme.isSmall(T)
Error: template deneme.isSmall(T) cannot deduce template function from argument types !()(bool)

Am I imagining it? I don't have a problem with it. :) Was the change intentional?

I think it used to work, and I think the change was intentional. I also "discovered" this not too long ago.

-Steve

Reply via email to