complex type associated with a float type?

Bill Baxter dnewsgroup at billbaxter.com
Sun Oct 29 21:44:31 PST 2006


Is there a built-in way to get the complex type associated with a given 
floating point type?

I guess if x is some floating point variable I could say,

   alias typeof(x+0i) complex_t;

is that the best bet?

Thanks,
--bb



More information about the Digitalmars-d-learn mailing list