From 49bd5a514ec76a1535f114fa2859db0347bfe5e8 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 27 Aug 2019 11:38:03 +0200 Subject: [PATCH] Fix build with MC. --- src/surf/network_cm02.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/surf/network_cm02.cpp b/src/surf/network_cm02.cpp index 48fe8ed242..40cce3eb82 100644 --- a/src/surf/network_cm02.cpp +++ b/src/surf/network_cm02.cpp @@ -393,8 +393,7 @@ NetworkWifiLink::NetworkWifiLink(NetworkCm02Model* model, const std::string& nam void NetworkWifiLink::set_host_rate(s4u::Host* host, int rate_level) { - std::pair::iterator, bool> insert_done = - host_rates_.insert(std::make_pair(host->get_name(), rate_level)); + auto insert_done = host_rates_.insert(std::make_pair(host->get_name(), rate_level)); if (insert_done.second == false) insert_done.first->second = rate_level; } -- 2.20.1