diff --git a/libs/util/include/psemek/util/statistics.hpp b/libs/util/include/psemek/util/statistics.hpp index 7859f1fc..e7643125 100644 --- a/libs/util/include/psemek/util/statistics.hpp +++ b/libs/util/include/psemek/util/statistics.hpp @@ -236,7 +236,8 @@ namespace psemek::util template statistics_log_bucket::statistics_log_bucket(statistics_log_bucket && other) - : precision_(other.precision_) + : statistics_lite(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 &>(*this) = other.lite(); precision_ = other.precision_; zero_count_ = other.zero_count_; buckets_ = std::move(other.buckets_);