X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2f4814937203142aa679e14df46f5f5f9d94f1f..f5284b2bb0f9897ef61de8762907f274c47c4c69:/examples/s4u/app-token-ring/s4u_app-token-ring.cpp diff --git a/examples/s4u/app-token-ring/s4u_app-token-ring.cpp b/examples/s4u/app-token-ring/s4u_app-token-ring.cpp index bffce7f7d3..968073f530 100644 --- a/examples/s4u/app-token-ring/s4u_app-token-ring.cpp +++ b/examples/s4u/app-token-ring/s4u_app-token-ring.cpp @@ -5,13 +5,14 @@ #include "xbt/str.h" #include +#include #include -#include +#include #include XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_app_token_ring, "Messages specific for this s4u example"); // FIXME: The following duplicates the content of s4u::Host -extern std::unordered_map host_list; +extern std::map host_list; class RelayRunner { public: @@ -54,8 +55,7 @@ int main(int argc, char** argv) xbt_assert(argc > 1, "Usage: %s platform.xml\n", argv[0]); e->loadPlatform(argv[1]); - XBT_INFO("Number of hosts '%lu'", host_list.size()); - + XBT_INFO("Number of hosts '%zu'", host_list.size()); int id = 0; for (auto h : host_list) { simgrid::s4u::Host* host = h.second;