Help!

jerro a at a.com
Mon Nov 26 08:49:00 PST 2012


> How can I fix the template declaration to not error in that 
> case?

If you want to have a template parameter that can be anything, 
including a a symbol or a built in type, you can use this ugly 
workaround:

template foo(bar...) if(bar.length == 1)
{
     enum foo = 1;
}



More information about the Digitalmars-d mailing list