X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/93e627932e2b4dfb8b7b4e319a820aeda261ceb9..7749be177cbd7d433ec389a155efff301969c6ee:/examples/s4u/async-ready/s4u-async-ready.cpp diff --git a/examples/s4u/async-ready/s4u-async-ready.cpp b/examples/s4u/async-ready/s4u-async-ready.cpp index d73f2ce2b5..ca868e2604 100644 --- a/examples/s4u/async-ready/s4u-async-ready.cpp +++ b/examples/s4u/async-ready/s4u-async-ready.cpp @@ -72,7 +72,7 @@ static int peer(int argc, char** argv) while (pending_finalize_messages > 0) { if (my_mbox->ready()) { double start = simgrid::s4u::Engine::get_clock(); - std::string* received = static_cast(my_mbox->get()); + const std::string* received = static_cast(my_mbox->get()); double waiting_time = simgrid::s4u::Engine::get_clock() - start; xbt_assert(waiting_time == 0, "Expecting the waiting time to be 0 because the communication was supposedly ready, but got %f instead", waiting_time); XBT_INFO("I got a '%s'.", received->c_str());