Commit aa6b055b authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation error on Windows

parent 01da523c
...@@ -51,13 +51,15 @@ public: ...@@ -51,13 +51,15 @@ public:
t_complex operator-(const t_complex& c) const { t_complex operator-(const t_complex& c) const {
return t_complex(re-c.re, im-c.im); return t_complex(re-c.re, im-c.im);
} }
t_complex operator+=(const t_complex& c) { t_complex& operator+=(const t_complex& c) {
re += c.re; re += c.re;
im += c.im; im += c.im;
return *this;
} }
t_complex operator-=(const t_complex& c) { t_complex& operator-=(const t_complex& c) {
re -= c.re; re -= c.re;
im -= c.im; im -= c.im;
return *this;
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment