How can we template an alias?

Michelle Long HappyDance321 at
Wed Feb 27 04:11:09 UTC 2019

doubles and ints are not upcasted properly to complex
foo(Complex!double c)

foo(3) fails

I'd like to do something like

alias CR(t) = Complex!double(t);


which would be equivalent to typing Complex!double(3) but much 

Writing a wrapper is overkill.

More information about the Digitalmars-d-learn mailing list