Template struct literals should infer template parameters

Sean Eskapp eatingstaples at gmail.com
Sat Aug 6 13:19:06 PDT 2011


If I have something like

    struct S(T)
    {
        T data;
    }


I can't make a struct literal with

    int mystuff;
    someFunc(S(mystuff));

I have to use

    int mystuff;
    someFunc(S!(int)(mystuff));

Why is this?


More information about the Digitalmars-d mailing list