11 Jan
2011
11 Jan
'11
7:01 a.m.
try
std::complex<double> z = 4. + 5.i;
ok, I put that but still doesn't work.
Incidentally, you should have a real transform able to turn any complex_expression into a complex and not rely on a given fixed AST structure.
What if i do z = i + i + 3 + 4*i ?
I know, but I want to keep it simple, std::complex<double> z = 4. + 5.*i; will be just a glorified constructor.