From f4287f36306ee56e871882aa77bde2af70c8ab4e Mon Sep 17 00:00:00 2001 From: "C. J. Howard" Date: Mon, 20 Mar 2023 22:49:50 +0800 Subject: [PATCH] Make moving average constructor with capacity explicit --- src/engine/math/moving-average.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/math/moving-average.hpp b/src/engine/math/moving-average.hpp index 1199f0e..334cd43 100644 --- a/src/engine/math/moving-average.hpp +++ b/src/engine/math/moving-average.hpp @@ -44,7 +44,7 @@ public: * @param capacity Sample capacity. */ /// @{ - moving_average(std::size_t capacity): + explicit moving_average(std::size_t capacity): m_samples(capacity) {} moving_average() noexcept = default;