
1 May
2012
1 May
'12
5:12 p.m.
But then aren't you removing the optimization complex<double> * int that Chris originally proposed ? As your int is promoted to a double. Or are you talking about non-POD integer-like types ?
No, the promotion is only in calculating the *type of the result*, if you look at the actual arithmetic in the example, then the real and imaginary components are directly multiplied by the arithmetic type. John.