A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prefer using "try_emplace" (sonar, c++17).
[simgrid.git]
/
src
/
smpi
/
internals
/
smpi_config.cpp
diff --git
a/src/smpi/internals/smpi_config.cpp
b/src/smpi/internals/smpi_config.cpp
index
55b6c77
..
e459692
100644
(file)
--- a/
src/smpi/internals/smpi_config.cpp
+++ b/
src/smpi/internals/smpi_config.cpp
@@
-104,7
+104,7
@@
simgrid::config::Flag<std::string> _smpi_cfg_comp_adjustment_file{
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
));
}
}
}};