-/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* 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
/* Start the finalize signal to the receiver*/
auto* payload = new std::string("finalize"); // Make a copy of the data we will send
- sg4::CommPtr comm = mbox->put_async(payload, 0);
- pending_comms.push_back(comm);
+ sg4::CommPtr final_comm = mbox->put_async(payload, 0);
+ pending_comms.push_back(final_comm);
XBT_INFO("Send 'finalize' to 'receiver-0'");
XBT_INFO("Done dispatching all messages");