diff --git a/complex.hh b/complex.hh index 81a9ca5..cc64a34 100644 --- a/complex.hh +++ b/complex.hh @@ -22,8 +22,8 @@ public: inline void imag(T i) { im = i; } inline Complex operator = (T a) { - real() = a; - imag() = 0; + re = a; + im = 0; return *this; } inline Complex operator += (Complex a)