Default template type for class?

js.mdnq js_adddot+mdng at gmail.com
Tue Dec 4 08:49:46 PST 2012


I have a class

static class myclass(T)
{
    static void myfunc();
}

which I have to call like myclass!Q.myfunc();

How can I create a default type so that I can call it like 
myclass.myfunc()?

I've tried

static class myclass(T = int) and (alias T = int), neither worked.




More information about the Digitalmars-d-learn mailing list