Template recursion exceeded

Michelle Long HappyDance321 at gmail.com
Wed Feb 27 05:45:19 UTC 2019


Basically

void foo(int k = 20)()
{
    static if (k <= 0 || k >= 100) return;
    foo!(k-1)();
}

Error		Error: template instance `foo!-280` recursive expansion		





More information about the Digitalmars-d-learn mailing list