#include <algorithm>
-#include <functional>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/log.h>
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm);
communicator::communicator()
: host(static_cast<hostdata*>(MSG_host_get_data(MSG_host_self())))
{
- receiver_thread = new_msg_thread("receiver",
- std::bind(&communicator::receiver, this));
+ receiver_thread = new_msg_thread("receiver", [this]() { this->receiver(); });
receiver_thread->start();
}