[Issue 9894] Member func of templated struct can't pass varargs to templated member func

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 6 19:45:49 PDT 2013


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



--- Comment #2 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2013-04-06 19:45:48 PDT ---
Workaround:

struct Foo(TArgs...) {
    void func(TArgs args) { this.workaround(args); }
    void func2()(TArgs args) {}
}
void workaround(Struct, TArgs...)(Struct s, TArgs args)
{
    s.func2!()(args);
}

void main() {
    Foo!(int) f;
    f.func(5);
}

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