Reduce reliance on boost - the hard part

the rest from `tools/convert_boost.sh`.

* replace boost::function, boost::bind with std::function and std::bind.

This required some manual fixes, notably std::placeholders,
some static_casts<>, and boost::function::clear -> = {}.
This commit is contained in:
Robin Gareus
2024-10-19 01:51:44 +02:00
parent ff95d81612
commit 74c4ca3e52
392 changed files with 2264 additions and 2282 deletions

View File

@@ -44,7 +44,7 @@ BindingProxy::BindingProxy (std::shared_ptr<Controllable> c)
if (c) {
c->DropReferences.connect (
_controllable_going_away_connection, invalidator (*this),
boost::bind (&BindingProxy::set_controllable, this, std::shared_ptr<Controllable> ()),
std::bind (&BindingProxy::set_controllable, this, std::shared_ptr<Controllable> ()),
gui_context());
}
}
@@ -71,7 +71,7 @@ BindingProxy::set_controllable (std::shared_ptr<Controllable> c)
if (c) {
c->DropReferences.connect (
_controllable_going_away_connection, invalidator (*this),
boost::bind (&BindingProxy::set_controllable, this, std::shared_ptr<Controllable> ()),
std::bind (&BindingProxy::set_controllable, this, std::shared_ptr<Controllable> ()),
gui_context());
}
}
@@ -101,7 +101,7 @@ BindingProxy::button_press_handler (GdkEventButton *ev)
}
prompter->set_text (prompt);
prompter->touch (); // shows popup
controllable->LearningFinished.connect_same_thread (learning_connection, boost::bind (&BindingProxy::learning_finished, this));
controllable->LearningFinished.connect_same_thread (learning_connection, std::bind (&BindingProxy::learning_finished, this));
}
return true;
}