diff options
author | Johannes Demel <demel@ant.uni-bremen.de> | 2020-05-02 15:36:51 +0200 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:48 -0400 |
commit | a6a1954f83478aff0c4fc53d0e8f51b49d51cc1e (patch) | |
tree | 933ed1043c7c379e7d3f220aae96fdccd052c1fe /gr-blocks/lib/pdu_set_impl.cc | |
parent | 3165f73d7c6224523957fa69beade6069efea6ef (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/pdu_set_impl.cc')
-rw-r--r-- | gr-blocks/lib/pdu_set_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-blocks/lib/pdu_set_impl.cc b/gr-blocks/lib/pdu_set_impl.cc index 5b25b4604c..ade302e31e 100644 --- a/gr-blocks/lib/pdu_set_impl.cc +++ b/gr-blocks/lib/pdu_set_impl.cc @@ -31,7 +31,8 @@ pdu_set_impl::pdu_set_impl(pmt::pmt_t k, pmt::pmt_t v) { message_port_register_out(pdu::pdu_port_id()); message_port_register_in(pdu::pdu_port_id()); - set_msg_handler(pdu::pdu_port_id(), boost::bind(&pdu_set_impl::handle_msg, this, _1)); + set_msg_handler(pdu::pdu_port_id(), + std::bind(&pdu_set_impl::handle_msg, this, std::placeholders::_1)); } void pdu_set_impl::handle_msg(pmt::pmt_t pdu) |