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
Use structured binding declarations (sonar, c++17).
[simgrid.git]
/
src
/
surf
/
sg_platf.cpp
diff --git
a/src/surf/sg_platf.cpp
b/src/surf/sg_platf.cpp
index
e6d95fd
..
f885a28
100644
(file)
--- a/
src/surf/sg_platf.cpp
+++ b/
src/surf/sg_platf.cpp
@@
-249,8
+249,8
@@
static void sg_platf_new_cluster_flat(simgrid::kernel::routing::ClusterCreationA
zone->set_parent(parent);
/* set properties */
zone->set_parent(parent);
/* set properties */
- for (auto const&
elm
: cluster->properties)
- zone->set_property(
elm.first, elm.second
);
+ for (auto const&
[key, value]
: cluster->properties)
+ zone->set_property(
key, value
);
/* Make the backbone */
const simgrid::s4u::Link* backbone = nullptr;
/* Make the backbone */
const simgrid::s4u::Link* backbone = nullptr;