Skip to content

Commit d4531be

Browse files
authored
Apply suggestions from code review
1 parent ad60fd4 commit d4531be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exporters/memory/src/in_memory_metric_data.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ void SimpleAggregateInMemoryMetricData::Add(std::unique_ptr<ResourceMetrics> res
3131
const auto &metric = m.instrument_descriptor.name_;
3232
for (const auto &pda : m.point_data_attr_)
3333
{
34+
// NOTE: Explicit type conversion added for C++11 (gcc 4.8)
3435
data_[std::tuple<std::string, std::string>{scope, metric}].insert(
3536
{pda.attributes, pda.point_data});
3637
}
@@ -42,6 +43,7 @@ const SimpleAggregateInMemoryMetricData::AttributeToPoint &SimpleAggregateInMemo
4243
const std::string &scope,
4344
const std::string &metric)
4445
{
46+
// NOTE: Explicit type conversion added for C++11 (gcc 4.8)
4547
return data_[std::tuple<std::string, std::string>{scope, metric}];
4648
}
4749

0 commit comments

Comments
 (0)