Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
massive cleanups in the s4u-async-waitall example
[simgrid.git] / src / s4u / s4u_storage.cpp
index 3890ce3c909fe3e1b8f12e8affb97cb5582b2def..092afea5ef6671f24e25ddb4044e62f753302752 100644 (file)
@@ -16,7 +16,7 @@ std::map<std::string, Storage*>* allStorages()
 {
   std::unordered_map<std::string, surf::StorageImpl*>* map = surf::StorageImpl::storagesMap();
   std::map<std::string, Storage*>* res                     = new std::map<std::string, Storage*>;
-  for (auto s : *map)
+  for (auto const& s : *map)
     res->insert({s.first, &(s.second->piface_)}); // Convert each entry into its interface
 
   return res;