Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use unordered_map instead of map for sake of speed
[simgrid.git] / examples / s4u / io / s4u_io.cpp
index 922d56dc43e107da1d2cb8101540212368398c46..4ebaea7bf566852695f4ac019be6600890fff95a 100644 (file)
@@ -3,7 +3,6 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#include <map>
 #include <unordered_map>
 #include <vector>
 
@@ -32,7 +31,7 @@ public:
     }
   }
 
-  int operator()() {
+  void operator()() {
     boost::unordered_map <std::string, simgrid::s4u::Storage *> const& mounts =
       simgrid::s4u::Host::current()->mountedStorages();
 
@@ -99,7 +98,6 @@ public:
       }
       xbt_dict_free(&contents);
      */
-    return 0;
   }
 };