X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/217ab9d5146bf370bbb20065fd357a5c099c78ee..b6dde5ff6f208b83545a4b4e9e81712d0d8617a1:/src/smpi/include/smpi_info.hpp diff --git a/src/smpi/include/smpi_info.hpp b/src/smpi/include/smpi_info.hpp index 01062cc31b..280afa5410 100644 --- a/src/smpi/include/smpi_info.hpp +++ b/src/smpi/include/smpi_info.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2019. The SimGrid Team. +/* Copyright (c) 2009-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -21,16 +21,16 @@ class Info : public F2C{ public: Info() = default; - explicit Info(Info* orig) : map_(orig->map_) {} + explicit Info(const Info* orig) : map_(orig->map_) {} ~Info() = default; void ref(); static void unref(MPI_Info info); - void set(char* key, char* value) { map_[key] = value; } - int get(char* key, int valuelen, char* value, int* flag); - int remove(char* key); + void set(const char* key, const char* value) { map_[key] = value; } + int get(const char* key, int valuelen, char* value, int* flag); + int remove(const char* key); int get_nkeys(int* nkeys); int get_nthkey(int n, char* key); - int get_valuelen(char* key, int* valuelen, int* flag); + int get_valuelen(const char* key, int* valuelen, int* flag); static Info* f2c(int id); };