Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
provide a simpler API of Engine::getHostList (returning the structure) and use it
[simgrid.git] / teshsuite / s4u / comm-pt2pt / comm-pt2pt.cpp
index c82af7b..8dce758 100644 (file)
@@ -182,8 +182,7 @@ int main(int argc, char* argv[])
   }
   xbt_assert(argSend.front().size() == argRecv.front().size(), "Sender and receiver spec must be of the same size");
 
-  std::vector<simgrid::s4u::Host*> hosts;
-  e.getHostList(&hosts);
+  std::vector<simgrid::s4u::Host*> hosts = e.getHostList();
 
   simgrid::s4u::Actor::createActor("sender", hosts[0], sender, argSend);
   simgrid::s4u::Actor::createActor("recver", hosts[1], receiver, argRecv);