X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/93e627932e2b4dfb8b7b4e319a820aeda261ceb9..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/examples/s4u/async-waitany/s4u-async-waitany.cpp diff --git a/examples/s4u/async-waitany/s4u-async-waitany.cpp b/examples/s4u/async-waitany/s4u-async-waitany.cpp index 407b4e56f6..dba580ed5f 100644 --- a/examples/s4u/async-waitany/s4u-async-waitany.cpp +++ b/examples/s4u/async-waitany/s4u-async-waitany.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2020. 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. */ @@ -102,7 +102,7 @@ public: { XBT_INFO("Wait for my first message"); for (bool cont = true; cont;) { - std::string* received = static_cast(mbox->get()); + const std::string* received = static_cast(mbox->get()); XBT_INFO("I got a '%s'.", received->c_str()); cont = (*received != "finalize"); // If it's a finalize message, we're done // Receiving the message was all we were supposed to do