Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Dexbtization: remove xbt_dynar_t argument in simcall_comm_waitany
[simgrid.git] / src / smpi / smpi_pmpi.cpp
index 6a56ecc..eb4e490 100644 (file)
@@ -5,6 +5,8 @@
 /* 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 <xbt/ex.hpp>
+
 #include "private.h"
 #include "smpi_mpi_dt_private.h"
 
@@ -3174,13 +3176,12 @@ int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo){
 }
 
 int PMPI_Info_delete(MPI_Info info, char *key){
-  xbt_ex_t e;
   if (info == nullptr || key==nullptr)
     return MPI_ERR_ARG;
-  TRY {
+  try {
     xbt_dict_remove(info->info_dict, key);
-  }CATCH(e){
-    xbt_ex_free(e);
+  }
+  catch(xbt_ex& e){
     return MPI_ERR_INFO_NOKEY;
   }
   return MPI_SUCCESS;