Avoid copy when creating a PmuCounter in place
diff --git a/vendor/arm/pmu/pmu_counter.h b/vendor/arm/pmu/pmu_counter.h
index a1bbdfc..183dcda 100644
--- a/vendor/arm/pmu/pmu_counter.h
+++ b/vendor/arm/pmu/pmu_counter.h
@@ -49,7 +49,7 @@
*
* @param[in] config Counter identifier.
*/
- explicit PmuCounter(uint64_t config);
+ PmuCounter(uint64_t config);
/** Default destructor. */
~PmuCounter();
diff --git a/vendor/arm/pmu/pmu_profiler.cpp b/vendor/arm/pmu/pmu_profiler.cpp
index 9274f5a..d6af31b 100644
--- a/vendor/arm/pmu/pmu_profiler.cpp
+++ b/vendor/arm/pmu/pmu_profiler.cpp
@@ -49,7 +49,7 @@
try
{
// Create a PMU counter with the specified configuration
- auto pmu_counter_res = pmu_counters_.emplace(counter, PmuCounter{pmu_config->second});
+ auto pmu_counter_res = pmu_counters_.emplace(counter, pmu_config->second);
// Try reading a value from the counter to check that it opened correctly
auto &pmu_counter = pmu_counter_res.first->second;