diff options
author | Johannes Demel <demel@ant.uni-bremen.de> | 2020-05-09 15:14:37 +0200 |
---|---|---|
committer | Josh Morman <mormjb@gmail.com> | 2020-06-04 10:05:48 -0400 |
commit | 320aa710c42c884ec7395b5c8332f601ee1895fc (patch) | |
tree | a6e3568d1418d638fea596c2ad3296fa264c6335 /gr-digital/lib/crc32_async_bb_impl.cc | |
parent | d584e7e9be13b500a8bc9a85f37d1cd51b0e0be5 (diff) |
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.
Diffstat (limited to 'gr-digital/lib/crc32_async_bb_impl.cc')
-rw-r--r-- | gr-digital/lib/crc32_async_bb_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-digital/lib/crc32_async_bb_impl.cc b/gr-digital/lib/crc32_async_bb_impl.cc index 971f69d485..d608d617f3 100644 --- a/gr-digital/lib/crc32_async_bb_impl.cc +++ b/gr-digital/lib/crc32_async_bb_impl.cc @@ -36,9 +36,9 @@ crc32_async_bb_impl::crc32_async_bb_impl(bool check) message_port_register_out(d_out_port); if (check) - set_msg_handler(d_in_port, boost::bind(&crc32_async_bb_impl::check, this, _1)); + set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->check(msg); }); else - set_msg_handler(d_in_port, boost::bind(&crc32_async_bb_impl::calc, this, _1)); + set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->calc(msg); }); } crc32_async_bb_impl::~crc32_async_bb_impl() {} |