X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8cd2b8b1e341896e2b8c3e96eb3778316855504c..ca112da1ded1f7e3308c4186e4188ad96b3b4032:/examples/s4u/app-bittorrent/s4u-bittorrent.cpp diff --git a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp index 38709b0be3..0ce2b97cf2 100644 --- a/examples/s4u/app-bittorrent/s4u-bittorrent.cpp +++ b/examples/s4u/app-bittorrent/s4u-bittorrent.cpp @@ -21,8 +21,7 @@ int main(int argc, char* argv[]) HostBittorrent::EXTENSION_ID = simgrid::s4u::Host::extension_create(); - std::vector list; - simgrid::s4u::Engine::getInstance()->getHostList(&list); + std::vector list = simgrid::s4u::Engine::getInstance()->getAllHosts(); for (auto const& host : list) host->extension_set(new HostBittorrent(host));