A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for potentially empty names
[simgrid.git]
/
src
/
smpi
/
include
/
smpi_datatype.hpp
diff --git
a/src/smpi/include/smpi_datatype.hpp
b/src/smpi/include/smpi_datatype.hpp
index
06a106b
..
19ad3ab
100644
(file)
--- a/
src/smpi/include/smpi_datatype.hpp
+++ b/
src/smpi/include/smpi_datatype.hpp
@@
-127,7
+127,7
@@
public:
Datatype(const Datatype&) = delete;
Datatype& operator=(const Datatype&) = delete;
~Datatype() override;
Datatype(const Datatype&) = delete;
Datatype& operator=(const Datatype&) = delete;
~Datatype() override;
- std::string name() const {return name_;}
+ std::string name() const {return name_
.empty() ? std::string("MPI_Datatype") : name_
;}
size_t size() const { return size_; }
MPI_Aint lb() const { return lb_; }
MPI_Aint ub() const { return ub_; }
size_t size() const { return size_; }
MPI_Aint lb() const { return lb_; }
MPI_Aint ub() const { return ub_; }