Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use empty() to check whether the container is empty or not.
[simgrid.git] / src / simix / smx_global.cpp
index 8ae0f087577f2dba07a404ed49cc77663efc26ea..4e90c3d7ac5526f900c4c300a85f2a5dac399320 100644 (file)
@@ -330,7 +330,7 @@ void SIMIX_clean()
   }
 
 #if HAVE_SMPI
   }
 
 #if HAVE_SMPI
-  if (simix_global->process_list.size() > 0) {
+  if (not simix_global->process_list.empty()) {
     if(smpi_process()->initialized()){
       xbt_die("Process exited without calling MPI_Finalize - Killing simulation");
     }else{
     if(smpi_process()->initialized()){
       xbt_die("Process exited without calling MPI_Finalize - Killing simulation");
     }else{