X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..7f626fa7e7d9a7d28fdc994ae197f82f0a0c6e52:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 2c084bc31f..4766cdbbba 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -30,7 +30,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, "Logging specific to SURF (ke simgrid::kernel::profile::FutureEvtSet future_evt_set; std::vector surf_path; -/* Don't forget to update the option description in smx_config when you change this */ const std::vector surf_network_model_description = { {"LV08", "Realistic network analytic model (slow-start modeled by multiplying latency by 13.01, bandwidth by .97; " @@ -166,9 +165,9 @@ void model_help(const char* category, const std::vector& table, const std::string& name) { - auto pos = std::find_if(table.begin(), table.end(), - [&name](const surf_model_description_t& item) { return item.name == name; }); - if (pos != table.end()) + if (auto pos = std::find_if(table.begin(), table.end(), + [&name](const surf_model_description_t& item) { return item.name == name; }); + pos != table.end()) return &*pos; std::string sep;