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-fec/lib/async_decoder_impl.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gr-fec/lib/async_decoder_impl.cc') diff --git a/gr-fec/lib/async_decoder_impl.cc b/gr-fec/lib/async_decoder_impl.cc index 8848964f49..7188c23cc4 100644 --- a/gr-fec/lib/async_decoder_impl.cc +++ b/gr-fec/lib/async_decoder_impl.cc @@ -52,11 +52,10 @@ async_decoder_impl::async_decoder_impl(generic_decoder::sptr my_decoder, if (d_packed) { d_pack = new blocks::kernel::pack_k_bits(8); - set_msg_handler(d_in_port, - boost::bind(&async_decoder_impl::decode_packed, this, _1)); + set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->decode_packed(msg); }); } else { set_msg_handler(d_in_port, - boost::bind(&async_decoder_impl::decode_unpacked, this, _1)); + [this](pmt::pmt_t msg) { this->decode_unpacked(msg); }); } // The maximum frame size is set by the initial frame size of the decoder. -- cgit v1.2.3