Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove explicit conversion to std::string when it's not required.
[simgrid.git] / src / smpi / include / smpi_datatype.hpp
index a2e404e..fbf6a29 100644 (file)
@@ -128,7 +128,7 @@ public:
   Datatype(const Datatype&) = delete;
   Datatype& operator=(const Datatype&) = delete;
   ~Datatype() override;
-  std::string name() const override {return name_.empty() ? std::string("MPI_Datatype") : name_;}
+  std::string name() const override { return name_.empty() ? "MPI_Datatype" : name_; }
   size_t size() const { return size_; }
   MPI_Aint lb() const { return lb_; }
   MPI_Aint ub() const { return ub_; }