summaryrefslogtreecommitdiff
path: root/gr-fec/lib/async_decoder_impl.cc
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-19 11:07:54 +0200
commite76d04ca2f4f15e3b1a1ab2a81dd52c4e6d2472c (patch)
tree1d86f68fceed9cd7204d9a79e816dc06c15feaf4 /gr-fec/lib/async_decoder_impl.cc
parent98348e37209aa7daeb96fe5ead815e5b083dc6da (diff)
parent39311758cb1e6a7424d3213b3eb2c65c8c4dcfe1 (diff)
Move from SWIG to Pybind11
Goodbye, and thanks for all the fish, SWIG. Please refer to docs/PYBIND11.md for details on how to deal with Pybind.
Diffstat (limited to 'gr-fec/lib/async_decoder_impl.cc')
-rw-r--r--gr-fec/lib/async_decoder_impl.cc5
1 files changed, 2 insertions, 3 deletions
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.