d-templates

    2熱度

    1回答

    template IsSame(T){ template As(alias t){ enum As = is(T : typeof(t)); } } void main() { int i; enum b = IsSame!int.As!(i); } 錯誤: Error: template instance As!(i) cannot