X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e07254f3777d8ecca2276e9ce60e3ae4473f47e..45cd2a06d411ef2a7487212d0e4ebd612391bf4d:/src/xbt/xbt_parse_units.cpp diff --git a/src/xbt/xbt_parse_units.cpp b/src/xbt/xbt_parse_units.cpp index 7321a37464..7bdcbf97e7 100644 --- a/src/xbt/xbt_parse_units.cpp +++ b/src/xbt/xbt_parse_units.cpp @@ -120,7 +120,7 @@ std::vector xbt_parse_get_bandwidths(const std::string& filename, int li std::vector bandwidths; std::vector tokens; boost::split(tokens, string, boost::is_any_of(";,")); - for (auto token : tokens) { + for (auto const& token : tokens) { bandwidths.push_back(surf_parse_get_value_with_unit( filename, lineno, token.c_str(), units, entity_kind, name, "Append 'Bps' to get bytes per second (or 'bps' for bits but 1Bps = 8bps)", "Bps"));