summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/mute_impl.cc
diff options
context:
space:
mode:
authorJohannes Demel <demel@ant.uni-bremen.de>2020-05-02 15:36:51 +0200
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commita6a1954f83478aff0c4fc53d0e8f51b49d51cc1e (patch)
tree933ed1043c7c379e7d3f220aae96fdccd052c1fe /gr-blocks/lib/mute_impl.cc
parent3165f73d7c6224523957fa69beade6069efea6ef (diff)
msg_handler: Switch from boost::function to std::function
This commit is a first stab at moving from `boost::function` to `std::function`. For now, it does only update gr-blocks. Also, this requires more testing. If others can confirm that this change works, I'll continue to update all modules.
Diffstat (limited to 'gr-blocks/lib/mute_impl.cc')
-rw-r--r--gr-blocks/lib/mute_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-blocks/lib/mute_impl.cc b/gr-blocks/lib/mute_impl.cc
index f8873234bf..e77d3199b4 100644
--- a/gr-blocks/lib/mute_impl.cc
+++ b/gr-blocks/lib/mute_impl.cc
@@ -35,8 +35,9 @@ mute_impl<T>::mute_impl(bool mute)
d_mute(mute)
{
this->message_port_register_in(pmt::intern("set_mute"));
- this->set_msg_handler(pmt::intern("set_mute"),
- boost::bind(&mute_impl<T>::set_mute_pmt, this, _1));
+ this->set_msg_handler(
+ pmt::intern("set_mute"),
+ std::bind(&mute_impl<T>::set_mute_pmt, this, std::placeholders::_1));
}
template <class T>