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.
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.