Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a name() to all F2C objects.
[simgrid.git] / src / smpi / include / smpi_datatype.hpp
index 294e617..06a106b 100644 (file)
@@ -127,8 +127,7 @@ public:
   Datatype(const Datatype&) = delete;
   Datatype& operator=(const Datatype&) = delete;
   ~Datatype() override;
-
-  const char* name() const { return name_.c_str(); }
+  std::string name() const {return name_;}
   size_t size() const { return size_; }
   MPI_Aint lb() const { return lb_; }
   MPI_Aint ub() const { return ub_; }