X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..172a73b13fe909117c7fbf3d69d4ce5e87efdbc6:/src/smpi/mpi/smpi_info.cpp diff --git a/src/smpi/mpi/smpi_info.cpp b/src/smpi/mpi/smpi_info.cpp index 3698e30d40..160892edb7 100644 --- a/src/smpi/mpi/smpi_info.cpp +++ b/src/smpi/mpi/smpi_info.cpp @@ -60,7 +60,7 @@ int Info::get_nkeys(int *nkeys){ int Info::get_nthkey(int n, char *key){ int num=0; - for (auto elm : map_) { + for (auto const& elm : map_) { if (num == n) { strncpy(key, elm.first.c_str(), elm.first.length() + 1); return MPI_SUCCESS;