[Issue 6084] Impossible to instantiate local template with TypeTuple-foreach iterator variable.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 1 01:35:30 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6084



--- Comment #1 from timon.gehr at gmx.ch 2011-06-01 01:31:07 PDT ---
Workaround:
import std.typetuple;
void main(){
    int foo(int x)(){return x;}
    foreach(_i;TypeTuple!(0)){
        enum i=_i;
        foo!i;
    }
}

-- 
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