-/* 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. */
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;
{
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[])