X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/543a9d7e86cfdffac751091543019b9bdaffff6b..036c801d55e3ab07b470c79640109080fed049a1:/examples/cpp/activity-waitany/s4u-activity-waitany.cpp diff --git a/examples/cpp/activity-waitany/s4u-activity-waitany.cpp b/examples/cpp/activity-waitany/s4u-activity-waitany.cpp index aa13b415dc..c19c2e6d60 100644 --- a/examples/cpp/activity-waitany/s4u-activity-waitany.cpp +++ b/examples/cpp/activity-waitany/s4u-activity-waitany.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2023. 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. */ @@ -13,7 +13,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_activity_waittany, "Messages specific for this static void bob() { - sg4::Mailbox* mbox = sg4::Mailbox::by_name(std::string("mbox")); + sg4::Mailbox* mbox = sg4::Mailbox::by_name("mbox"); const sg4::Disk* disk = sg4::Host::current()->get_disks().front(); std::string* payload; @@ -48,7 +48,7 @@ static void alice() { auto* payload = new std::string("Message"); XBT_INFO("Send '%s'", payload->c_str()); - sg4::Mailbox::by_name(std::string("mbox"))->put(payload, 6e8); + sg4::Mailbox::by_name("mbox")->put(payload, 6e8); } int main(int argc, char* argv[])