Fix merging util::statistics

This commit is contained in:
Nikita Lisitsa 2024-08-22 19:53:53 +03:00
parent ba8b33d49e
commit 954068ba3a

View file

@ -236,7 +236,8 @@ namespace psemek::util
template <typename T>
statistics_log_bucket<T>::statistics_log_bucket(statistics_log_bucket && other)
: precision_(other.precision_)
: statistics_lite<T>(other.lite())
, precision_(other.precision_)
, zero_count_(other.zero_count_)
, buckets_(std::move(other.buckets_))
, prefix_count_(std::move(other.prefix_count_))
@ -250,6 +251,7 @@ namespace psemek::util
if (this == &other)
return *this;
static_cast<statistics_lite<T> &>(*this) = other.lite();
precision_ = other.precision_;
zero_count_ = other.zero_count_;
buckets_ = std::move(other.buckets_);