[Issue 6474] aliasing type tuple elements' members is onerous
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 31 13:36:43 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6474
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-31 13:36:42 PDT ---
Just pasting this here as I've ran into it again:
template test(T, Preds...)
{
enum bool test = Preds[0]!T; // error: semicolon expected, not '!'
}
A workaround is to use an alias:
template test(T, Preds...)
{
alias Pred = Preds[0];
enum bool test = Pred!T;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list