Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove explicit conversion to std::string when it's not required.
[simgrid.git] / examples / cpp / comm-waituntil / s4u-comm-waituntil.cpp
index a24ca3a..dc61966 100644 (file)
@@ -25,7 +25,7 @@ static void sender(int messages_count, size_t payload_size)
 
   /* Start dispatching all messages to the receiver */
   for (int i = 0; i < messages_count; i++) {
-    std::string message = std::string("Message ") + std::to_string(i);
+    std::string message = "Message " + std::to_string(i);
     auto* payload       = new std::string(message); // copy the data we send:
 
     // 'msgName' is not a stable storage location