X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5374152e5cef13c6afb99bf83095505235d5e466..2c0aa88e3d941e79fc79d39e3e58224d282b76d3:/examples/s4u/maestro-set/s4u-maestro-set.cpp diff --git a/examples/s4u/maestro-set/s4u-maestro-set.cpp b/examples/s4u/maestro-set/s4u-maestro-set.cpp index 00982ec997..8188c9c5fd 100644 --- a/examples/s4u/maestro-set/s4u-maestro-set.cpp +++ b/examples/s4u/maestro-set/s4u-maestro-set.cpp @@ -40,7 +40,7 @@ static void ensure_other_tid() static void sender() { ensure_root_tid(); - std::string* payload = new std::string("some message"); + auto* payload = new std::string("some message"); simgrid::s4u::Mailbox::by_name("some mailbox")->put((void*)payload, 10e8); } @@ -48,7 +48,7 @@ static void receiver() { ensure_other_tid(); - const std::string* payload = static_cast(simgrid::s4u::Mailbox::by_name("some mailbox")->get()); + const auto* payload = static_cast(simgrid::s4u::Mailbox::by_name("some mailbox")->get()); XBT_INFO("Task received"); delete payload; }