]> AND Private Git Repository - loba.git/blobdiff - communicator.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Remove usage of std::bind.
[loba.git] / communicator.cpp
index 5abb543582c617a948258fc16845abafbf56cfaa..40752c5241ab791d9ec747cd5e714fd50d9105b7 100644 (file)
@@ -1,5 +1,4 @@
 #include <algorithm>
 #include <algorithm>
-#include <functional>
 #include <msg/msg.h>
 #include <xbt/log.h>
 
 #include <msg/msg.h>
 #include <xbt/log.h>
 
@@ -23,8 +22,7 @@ namespace {
 communicator::communicator()
     : host(static_cast<hostdata*>(MSG_host_get_data(MSG_host_self())))
 {
 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();
 }
 
     receiver_thread->start();
 }