Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more strings
[simgrid.git] / src / smpi / internals / smpi_utils.cpp
index 7951ecf..86594e1 100644 (file)
@@ -7,7 +7,6 @@
 #include "smpi/smpi_utils.hpp"
 #include "xbt/sysdep.h"
 #include "xbt/log.h"
-#include "xbt/str.h"
 #include <boost/tokenizer.hpp>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_utils, smpi, "Logging specific to SMPI (utils)");
@@ -64,7 +63,7 @@ std::vector<s_smpi_factor_t> parse_factor(const char *smpi_coef_string)
   std::sort(smpi_factor.begin(), smpi_factor.end(), [](const s_smpi_factor_t &pa, const s_smpi_factor_t &pb) {
     return (pa.factor < pb.factor);
   });
-  for (auto& fact : smpi_factor) {
+  for (auto const& fact : smpi_factor) {
     XBT_DEBUG("smpi_factor:\t%zu : %zu values, first: %f", fact.factor, smpi_factor.size() ,fact.values[0]);
   }
   smpi_factor.shrink_to_fit();