]> AND Public Git Repository - simgrid.git/blobdiff - src/s4u/s4u_Host.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
better check for mpi_datatype_null
[simgrid.git] / src / s4u / s4u_Host.cpp
index 02684f98bd187a58b60919eb972a9d1a6f7910bd..9db61956a86ce99d962c0bfc29fa0776a02deb71 100644 (file)
@@ -397,7 +397,7 @@ sg_host_t* sg_host_list()
   xbt_assert(host_count > 0, "There is no host!");
   std::vector<simgrid::s4u::Host*> hosts = e->get_all_hosts();
 
-  sg_host_t* res = xbt_new(sg_host_t, hosts.size());
+  auto* res = xbt_new(sg_host_t, hosts.size());
   std::copy(begin(hosts), end(hosts), res);
 
   return res;