X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a43ef1c628f2962dceb1994099e6a67dc292424e..53300623ffc4a530dedcc517d559926ea0891edf:/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp?ds=sidebyside diff --git a/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp b/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp index 8f7f6220e6..21b583774f 100644 --- a/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp +++ b/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp @@ -19,11 +19,9 @@ int main(int argc, char* argv[]) for (auto c : clusters) { XBT_INFO("%s", c->get_cname()); - std::vector* hosts = new std::vector; - c->getHosts(hosts); - for (auto h : *hosts) + std::vector hosts = c->get_all_hosts(); + for (auto h : hosts) XBT_INFO(" %s", h->get_cname()); - delete hosts; } std::vector dragonfly_clusters =