X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/bccf459a375af533649be3e8036f5040769cd594..1d498e972be5597e0f902a1bb8e6ec8d87d51002:/communicator.cpp?ds=sidebyside diff --git a/communicator.cpp b/communicator.cpp index 5abb543..2df6d76 100644 --- a/communicator.cpp +++ b/communicator.cpp @@ -1,6 +1,5 @@ #include -#include -#include +#include #include XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(comm); @@ -23,8 +22,7 @@ namespace { communicator::communicator() : host(static_cast(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(); }