Browse Source

Make moving average constructor with capacity explicit

master
C. J. Howard 1 year ago
parent
commit
f4287f3630
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/engine/math/moving-average.hpp

+ 1
- 1
src/engine/math/moving-average.hpp View File

@ -44,7 +44,7 @@ public:
* @param capacity Sample capacity. * @param capacity Sample capacity.
*/ */
/// @{ /// @{
moving_average(std::size_t capacity):
explicit moving_average(std::size_t capacity):
m_samples(capacity) m_samples(capacity)
{} {}
moving_average() noexcept = default; moving_average() noexcept = default;

Loading…
Cancel
Save