From 7cd72871fa675460d5d8e2f016a50a6aab78c6d5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 9 Aug 2018 18:05:07 +0200 Subject: busywork --- compat/variance.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'compat/variance.hpp') diff --git a/compat/variance.hpp b/compat/variance.hpp index 7a83154c..237bb51a 100644 --- a/compat/variance.hpp +++ b/compat/variance.hpp @@ -18,16 +18,15 @@ // Comparison of Several Algorithms for Computing Sample Means and Variances. // Journal of the American Statistical Association, Vol. 69, No. 348, 859-866. -class variance +class variance final { double m_old, m_new, s_old, s_new; - std::uintptr_t cnt; + std::uintptr_t cnt = 0; public: using size_type = std::uintptr_t; - variance() : cnt(0) {} - + variance& operator=(variance const&) = default; void clear() { *this = variance(); } size_type count() { return cnt; } -- cgit v1.2.3