From 7f64356dde6c79a88c6d10b30054899704c107e7 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 27 Aug 2018 14:04:39 +0200 Subject: [PATCH] overwrite members directly here --- complex.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)