From 14363681abc82efe0c4bb996c38a7061dece349c Mon Sep 17 00:00:00 2001 From: owent Date: Sat, 9 Sep 2023 19:28:18 +0800 Subject: [PATCH] Fix constructor --- .../sdk/metrics/export/metric_producer.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h b/sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h index e70eaebce2..b54ba9ebe1 100644 --- a/sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h +++ b/sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h @@ -34,7 +34,11 @@ struct ScopeMetrics const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope_ = nullptr; std::vector metric_data_; - ScopeMetrics() = default; + ScopeMetrics() = default; + ScopeMetrics(const ScopeMetrics &) = default; + ScopeMetrics(ScopeMetrics &&) = default; + ScopeMetrics &operator=(const ScopeMetrics &) = default; + ScopeMetrics &operator=(ScopeMetrics &&) = default; }; struct ResourceMetrics @@ -42,7 +46,11 @@ struct ResourceMetrics const opentelemetry::sdk::resource::Resource *resource_ = nullptr; std::vector scope_metric_data_; - ResourceMetrics() = default; + ResourceMetrics() = default; + ResourceMetrics(const ResourceMetrics &) = default; + ResourceMetrics(ResourceMetrics &&) = default; + ResourceMetrics &operator=(const ResourceMetrics &) = default; + ResourceMetrics &operator=(ResourceMetrics &&) = default; }; /**