From 320aa710c42c884ec7395b5c8332f601ee1895fc Mon Sep 17 00:00:00 2001 From: Johannes Demel <demel@ant.uni-bremen.de> Date: Sat, 9 May 2020 15:14:37 +0200 Subject: msg_handler: Use lambdas in most components With this commit, all components except gr-qtgui use lambdas instead of `boost::bind` to register msg handlers. --- gr-uhd/lib/usrp_block_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-uhd/lib/usrp_block_impl.cc') diff --git a/gr-uhd/lib/usrp_block_impl.cc b/gr-uhd/lib/usrp_block_impl.cc index 50edc82b5b..2ce7aa3b39 100644 --- a/gr-uhd/lib/usrp_block_impl.cc +++ b/gr-uhd/lib/usrp_block_impl.cc @@ -125,7 +125,7 @@ usrp_block_impl::usrp_block_impl(const ::uhd::device_addr_t& device_addr, // Set up message ports: message_port_register_in(pmt::mp("command")); set_msg_handler(pmt::mp("command"), - boost::bind(&usrp_block_impl::msg_handler_command, this, _1)); + [this](pmt::pmt_t msg) { this->msg_handler_command(msg); }); // cuz we lazy: #define REGISTER_CMD_HANDLER(key, _handler) \ -- cgit v1.2.3