-/* Copyright (c) 2007-2020. The SimGrid Team. LEVEL_ALL rights reserved. */
+/* Copyright (c) 2007-2021. The SimGrid Team. LEVEL_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 receiver(std::string mailbox)
{
auto* mbox = simgrid::s4u::Mailbox::by_name(mailbox);
- auto msg = std::unique_ptr<Message>(mbox->get<Message>());
+ auto msg = mbox->get_unique<Message>();
XBT_INFO("[%s] %s received %d bytes from %s",
mailbox.c_str(),
simgrid::s4u::this_actor::get_host()->get_name().c_str(),