From f141e04dc6097704ea753f42dc4dc42d483db574 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 23 Jan 2019 16:33:21 +0100 Subject: [PATCH] Revert "do not initialize Complex to zero" This reverts commit 277af075116fc8a01ad2aa3bb3547844cdbfa119. --- complex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complex.hh b/complex.hh index d4dce63..df1fa40 100644 --- a/complex.hh +++ b/complex.hh @@ -14,7 +14,7 @@ class Complex T re, im; public: typedef T value_type; - constexpr Complex() /*: re(0), im(0)*/ {} + constexpr Complex() : re(0), im(0) {} constexpr Complex(T r) : re(r), im(0) {} constexpr Complex(T r, T i) : re(r), im(i) {} constexpr T real() const { return re; }