digitalmars.D.learn - complex type associated with a float type?
- Bill Baxter (7/7) Oct 29 2006 Is there a built-in way to get the complex type associated with a given
- Lionello Lunesu (2/13) Oct 30 2006 My first guess would be auto c = x+0i; and then using typeof(c)
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
Oct 29 2006
Bill Baxter wrote: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, --bbMy first guess would be auto c = x+0i; and then using typeof(c)
Oct 30 2006