[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:36:32 PDT 2011


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



--- Comment #2 from timon.gehr at gmx.ch 2011-06-01 01:32:09 PDT ---
Another workaround:
import std.typetuple;
void main(){
    int foo(int x)(){return x;}
    foreach(i;TypeTuple!(0)){
        foo!(i+0);
    }
}

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