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
/
kernel
/
routing
/
StarZone.cpp
diff --git
a/src/kernel/routing/StarZone.cpp
b/src/kernel/routing/StarZone.cpp
index
489ecd9
..
6d4b0f7
100644
(file)
--- a/
src/kernel/routing/StarZone.cpp
+++ b/
src/kernel/routing/StarZone.cpp
@@
-170,7
+170,7
@@
void StarZone::do_seal()
{
/* add default empty links if nothing was configured by user */
for (auto const& node : get_vertices()) {
- auto route = routes_.emplace(node->id(), StarRoute());
+ auto route = routes_.
try_
emplace(node->id(), StarRoute());
if (route.second) {
route.first->second.links_down_set = true;
route.first->second.links_up_set = true;