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; }