X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4d9550ef5050a1c35b340897f602e78cc23efa7b..450b358183e53934a1185e4714387a9d824b0181:/src/smpi/include/smpi_status.hpp diff --git a/src/smpi/include/smpi_status.hpp b/src/smpi/include/smpi_status.hpp index debe7ca064..25446988f2 100644 --- a/src/smpi/include/smpi_status.hpp +++ b/src/smpi/include/smpi_status.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2019. The SimGrid Team. +/* Copyright (c) 2009-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,8 +9,7 @@ #include "smpi/smpi.h" -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { //Status has to stay in C, as its fields are public. //So status class only defines static methods to handle the C struct. @@ -19,11 +18,9 @@ public: static void empty(MPI_Status * status); static int cancelled (const MPI_Status * status); static void set_cancelled (MPI_Status * status, int flag); -static void set_elements (MPI_Status * status, MPI_Datatype , int count); -static int get_count(MPI_Status * status, MPI_Datatype datatype); +static void set_elements(MPI_Status* status, const Datatype*, int count); +static int get_count(const MPI_Status* status, const Datatype* datatype); }; - -} -} +} // namespace simgrid::smpi #endif