Skip to content

Commit

Permalink
Fix compatibility for legacy toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Oct 14, 2024
1 parent 73d0adb commit 0b23c70
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exporters/memory/src/in_memory_metric_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void SimpleAggregateInMemoryMetricData::Add(nostd::unique_ptr<ResourceMetrics> r
const auto &metric = m.instrument_descriptor.name_;
for (const auto &pda : m.point_data_attr_)
{
data_[{scope, metric}].insert({pda.attributes, pda.point_data});
data_[std::tuple<std::string, std::string>{scope, metric}].insert(
{pda.attributes, pda.point_data});
}
}
}
Expand All @@ -41,7 +42,7 @@ const SimpleAggregateInMemoryMetricData::AttributeToPoint &SimpleAggregateInMemo
const std::string &scope,
const std::string &metric)
{
return data_[{scope, metric}];
return data_[std::tuple<std::string, std::string>{scope, metric}];
}

void SimpleAggregateInMemoryMetricData::Clear()
Expand Down

0 comments on commit 0b23c70

Please sign in to comment.