Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Datatype: Make the dt id a std::string
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 28 Mar 2018 15:30:26 +0000 (17:30 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 28 Mar 2018 15:33:55 +0000 (17:33 +0200)
commit2960278de1d9e6497a93e0f614530f78cf1075e3
treeeb4690f43215bc93e6acb7d0365bd20420b774de
parentf84aecd6adbd11b2e31a6cd47016bc03aa778a6e
[SMPI] Datatype: Make the dt id a std::string

Currently, the Datatype::encode() function returns a
const char*. Using a temporary object as returned from
std::to_string() would return a temporary memory address via
.c_str() and hence cannot be used.

Once encode has been moved to std::string, this could potentially
be an int again...
src/smpi/include/smpi_datatype.hpp
src/smpi/mpi/smpi_datatype.cpp