From c1f3f7f2b8f9252b4d6c2dc9c94300c86f591510 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 16 Feb 2023 00:13:26 -0500 Subject: [PATCH] Trying --- include/blt/std/math.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/blt/std/math.h b/include/blt/std/math.h index 82e41e0..3aa4944 100644 --- a/include/blt/std/math.h +++ b/include/blt/std/math.h @@ -563,12 +563,13 @@ namespace blt { template class averagizer_o_matic { private: - T* data = new T[Size]; + T* data; int index = 0; int m_default = 0; public: averagizer_o_matic(): averagizer_o_matic(0) {} explicit averagizer_o_matic(T default_value){ + data = new T[Size]; for (int i = 0; i < Size; i++){ data[i] = default_value; }