X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..db41dc7d999a5792aca42198b5bc87edb2dbfcce:/src/smpi/include/smpi_errhandler.hpp diff --git a/src/smpi/include/smpi_errhandler.hpp b/src/smpi/include/smpi_errhandler.hpp index 30309016ed..d22f527061 100644 --- a/src/smpi/include/smpi_errhandler.hpp +++ b/src/smpi/include/smpi_errhandler.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. The SimGrid Team. +/* Copyright (c) 2010-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,9 +9,7 @@ #include "smpi_f2c.hpp" #include - -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { class Errhandler: public F2C { private: @@ -25,13 +23,13 @@ class Errhandler: public F2C { explicit Errhandler(MPI_File_errhandler_fn *function):file_func_(function){}; explicit Errhandler(MPI_Win_errhandler_fn *function):win_func_(function){}; void ref(); - void call(MPI_Comm comm, int errorcode); - void call(MPI_Win win, int errorcode); - void call(MPI_File file, int errorcode); + std::string name() const override {return "MPI_Errhandler";} + void call(MPI_Comm comm, int errorcode) const; + void call(MPI_Win win, int errorcode) const; + void call(MPI_File file, int errorcode) const; static void unref(Errhandler* errhandler); static Errhandler* f2c(int id); }; -} -} +} // namespace simgrid::smpi #endif