Complex Numbers

Is there any way I can reassign a complex valued variable a completely new value without creating a new complex variable.

1
2
3
4
complex<double> A(1,1);

//I know this next bit doesn't work but is there an alternative way?
A=(2,2);


closed account (D80DSL3A)
A = std::complex<double>(2.0,2.0); should work, according to:
http://www.cplusplus.com/reference/complex/complex/operators/
Topic archived. No new replies allowed.