X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5374152e5cef13c6afb99bf83095505235d5e466..2c0aa88e3d941e79fc79d39e3e58224d282b76d3:/examples/s4u/comm-suspend/s4u-comm-suspend.cpp diff --git a/examples/s4u/comm-suspend/s4u-comm-suspend.cpp b/examples/s4u/comm-suspend/s4u-comm-suspend.cpp index 144a0293aa..b0c7c8a65c 100644 --- a/examples/s4u/comm-suspend/s4u-comm-suspend.cpp +++ b/examples/s4u/comm-suspend/s4u-comm-suspend.cpp @@ -20,7 +20,7 @@ static void sender(int argc, char**) // Copy the data we send: the 'msg_content' variable is not a stable storage location. // It will be destroyed when this actor leaves the loop, ie before the receiver gets the data - std::string* payload = new std::string("Sent message"); + auto* payload = new std::string("Sent message"); /* Create a communication representing the ongoing communication and then */ simgrid::s4u::CommPtr comm = mbox->put_init(payload, 13194230); @@ -49,7 +49,7 @@ static void receiver(int, char**) XBT_INFO("Wait for the message."); void* payload = mbox->get(); - const std::string* received = static_cast(payload); + const auto* received = static_cast(payload); XBT_INFO("I got '%s'.", received->c_str()); delete received;