[](const std::string& str) {
_smpi_cfg_host_speed = xbt_parse_get_speed("smpi/host-speed", 1, str, "option smpi/host-speed");
xbt_assert(_smpi_cfg_host_speed > 0.0, "Invalid value (%s) for 'smpi/host-speed': it must be positive.",
- _smpi_cfg_host_speed_string.get().c_str());
+ str.c_str());
}};
simgrid::config::Flag<bool> _smpi_cfg_simulate_computation{
auto end = std::next(tok.begin());
std::string location = *it;
boost::trim(location);
- location2speedup.insert(std::pair<std::string, double>(location, std::stod(*end)));
+ location2speedup.try_emplace(location, std::stod(*end));
}
}
}};