/* 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"
}
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;