X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c29f2be64b6bc2888cb605bb5db64395d586ff7..42e5769c3d54afe831345b6a746edb8040f60cfc:/src/smpi/internals/smpi_global.cpp diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index a8798fd5d2..3d96f244ba 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -275,9 +275,7 @@ static void smpi_init_papi() } XBT_DEBUG("Successfully added PAPI event '%s' to the event set.", event_name); - counters2values.push_back( - // We cannot just pass *events_it, as this is of type const basic_string - std::make_pair(std::string(*events_it), 0LL)); + counters2values.emplace_back(*events_it, 0LL); } std::string unit_name = *(event_tokens.begin());