Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modern C++ use "auto".
[simgrid.git] / src / smpi / colls / bcast / bcast-flattree-pipeline.cpp
index 48571dd..82d4a04 100644 (file)
@@ -30,8 +30,8 @@ int bcast__flattree_pipeline(void *buff, int count,
   rank = comm->rank();
   num_procs = comm->size();
 
-  MPI_Request* request_array = new MPI_Request[pipe_length];
-  MPI_Status* status_array   = new MPI_Status[pipe_length];
+  auto* request_array = new MPI_Request[pipe_length];
+  auto* status_array  = new MPI_Status[pipe_length];
 
   if (rank != root) {
     for (i = 0; i < pipe_length; i++) {