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
Remove explicit conversion to std::string when it's not required.
[simgrid.git]
/
examples
/
cpp
/
comm-waituntil
/
s4u-comm-waituntil.cpp
diff --git
a/examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
b/examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
index
70f4277
..
dc61966
100644
(file)
--- a/
examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
+++ b/
examples/cpp/comm-waituntil/s4u-comm-waituntil.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010-202
1
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-202
2
. 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. */
/* 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. */
@@
-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++) {
/* 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
auto* payload = new std::string(message); // copy the data we send:
// 'msgName' is not a stable storage location
@@
-38,8
+38,8
@@
static void sender(int messages_count, size_t payload_size)
/* Start the finalize signal to the receiver*/
auto* payload = new std::string("finalize"); // Make a copy of the data we will send
/* 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");
XBT_INFO("Send 'finalize' to 'receiver-0'");
XBT_INFO("Done dispatching all messages");