traits: how to split parametrized type into basic type and parameters

Martin Kinkelin noone at spam.com
Sun Feb 13 15:38:18 PST 2011


I realize a parametrized constructor would be a better option:
this(T2)(const(Vector!(d,T2)) rhs) if (isNumeric!T2) { ... }
// e.g., auto i4 = int4(f4);

but I'd still prefer the casting syntax if possible.


More information about the Digitalmars-d-learn mailing list