@@ -23,7 +23,7 @@ class metadata_change_handler_t {
23
23
const boost::shared_ptr<semilattice_readwrite_view_t <metadata_t > > &_metadata) :
24
24
mailbox_manager (_mailbox_manager),
25
25
request_mailbox (mailbox_manager,
26
- boost ::bind (&metadata_change_handler_t <metadata_t >::remote_change_request, this , _1)),
26
+ std ::bind (&metadata_change_handler_t <metadata_t >::remote_change_request, this , std::placeholders:: _1)),
27
27
metadata_view(_metadata)
28
28
{ }
29
29
@@ -59,8 +59,8 @@ class metadata_change_handler_t {
59
59
{
60
60
cond_t done;
61
61
ack_mailbox_t ack_mailbox (mailbox_manager,
62
- boost ::bind (&metadata_change_handler_t ::metadata_change_request_t ::handle_ack,
63
- this , &done, _1, _2));
62
+ std ::bind (&metadata_change_handler_t ::metadata_change_request_t ::handle_ack,
63
+ this , &done, std::placeholders:: _1, std::placeholders:: _2));
64
64
65
65
send (mailbox_manager, _request_mailbox, ack_mailbox.get_address ());
66
66
disconnect_watcher_t dc_watcher (mailbox_manager->get_connectivity_service (), _request_mailbox.get_peer ());
@@ -86,8 +86,8 @@ class metadata_change_handler_t {
86
86
interest_acquired = false ;
87
87
promise_t <bool > result_promise;
88
88
result_mailbox_t result_mailbox (mailbox_manager,
89
- boost ::bind (&promise_t <bool >::pulse,
90
- &result_promise, _1));
89
+ std ::bind (&promise_t <bool >::pulse,
90
+ &result_promise, std::placeholders:: _1));
91
91
92
92
send (mailbox_manager, commit_mailbox_address, true , metadata, result_mailbox.get_address ());
93
93
disconnect_watcher_t dc_watcher (mailbox_manager->get_connectivity_service (), commit_mailbox_address.get_peer ());
@@ -125,19 +125,19 @@ class metadata_change_handler_t {
125
125
126
126
void remote_change_request (typename ack_mailbox_t ::address_t ack_mailbox) {
127
127
// Spawn a coroutine to wait for the metadata change
128
- coro_t::spawn_sometime (boost ::bind (&metadata_change_handler_t ::remote_change_request_coro,
129
- this ,
130
- ack_mailbox,
131
- auto_drainer_t::lock_t (&drainer)));
128
+ coro_t::spawn_sometime (std ::bind (&metadata_change_handler_t ::remote_change_request_coro,
129
+ this ,
130
+ ack_mailbox,
131
+ auto_drainer_t::lock_t (&drainer)));
132
132
}
133
133
134
134
void remote_change_request_coro (typename ack_mailbox_t ::address_t ack_mailbox,
135
135
auto_drainer_t ::lock_t lock UNUSED) {
136
136
cond_t invalid_condition;
137
137
cond_t commit_done;
138
138
commit_mailbox_t commit_mailbox (mailbox_manager,
139
- boost ::bind (&metadata_change_handler_t <metadata_t >::handle_commit,
140
- this , &commit_done, &invalid_condition, _1, _2, _3));
139
+ std ::bind (&metadata_change_handler_t <metadata_t >::handle_commit,
140
+ this , &commit_done, &invalid_condition, std::placeholders:: _1, std::placeholders:: _2, std::placeholders:: _3));
141
141
142
142
coro_invalid_conditions.insert (&invalid_condition);
143
143
@@ -161,11 +161,11 @@ class metadata_change_handler_t {
161
161
if (success) {
162
162
update (metadata);
163
163
}
164
- coro_t::spawn_sometime (boost ::bind (&metadata_change_handler_t ::send_result,
165
- this ,
166
- success,
167
- result_mailbox,
168
- auto_drainer_t::lock_t (&drainer)));
164
+ coro_t::spawn_sometime (std ::bind (&metadata_change_handler_t ::send_result,
165
+ this ,
166
+ success,
167
+ result_mailbox,
168
+ auto_drainer_t::lock_t (&drainer)));
169
169
}
170
170
done->pulse ();
171
171
}
0 commit comments