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/multiply_matrix_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/multiply_matrix_impl.cc')
-rw-r--r-- | gr-blocks/lib/multiply_matrix_impl.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gr-blocks/lib/multiply_matrix_impl.cc b/gr-blocks/lib/multiply_matrix_impl.cc index b3452a5c17..358843abff 100644 --- a/gr-blocks/lib/multiply_matrix_impl.cc +++ b/gr-blocks/lib/multiply_matrix_impl.cc @@ -223,9 +223,10 @@ multiply_matrix_impl<gr_complex>::multiply_matrix_impl( pmt::pmt_t port_name = pmt::string_to_symbol("set_A"); message_port_register_in(port_name); - set_msg_handler( - port_name, - boost::bind(&multiply_matrix_impl<gr_complex>::msg_handler_A, this, _1)); + set_msg_handler(port_name, + std::bind(&multiply_matrix_impl<gr_complex>::msg_handler_A, + this, + std::placeholders::_1)); } template <> @@ -245,7 +246,9 @@ multiply_matrix_impl<float>::multiply_matrix_impl( pmt::pmt_t port_name = pmt::string_to_symbol("set_A"); message_port_register_in(port_name); set_msg_handler(port_name, - boost::bind(&multiply_matrix_impl<float>::msg_handler_A, this, _1)); + std::bind(&multiply_matrix_impl<float>::msg_handler_A, + this, + std::placeholders::_1)); } |