X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/cf0d125a496f82b6831925b514bc5b40717ee9ca..d9fabc892aa327eabb9cae3e2fa7f5f330077220:/communicator.cpp?ds=sidebyside diff --git a/communicator.cpp b/communicator.cpp index 5abb543..40752c5 100644 --- a/communicator.cpp +++ b/communicator.cpp @@ -1,5 +1,4 @@ #include -#include #include #include @@ -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(); }