summaryrefslogtreecommitdiff
path: root/gr-digital/lib
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/lib')
-rw-r--r--gr-digital/lib/chunks_to_symbols_impl.cc6
-rw-r--r--gr-digital/lib/constellation_receiver_cb_impl.cc10
-rw-r--r--gr-digital/lib/costas_loop_cc_impl.cc2
-rw-r--r--gr-digital/lib/crc32_async_bb_impl.cc4
-rw-r--r--gr-digital/lib/header_payload_demux_impl.cc5
-rw-r--r--gr-digital/lib/protocol_formatter_async_impl.cc3
6 files changed, 12 insertions, 18 deletions
diff --git a/gr-digital/lib/chunks_to_symbols_impl.cc b/gr-digital/lib/chunks_to_symbols_impl.cc
index e13e2f14e6..2c582b0334 100644
--- a/gr-digital/lib/chunks_to_symbols_impl.cc
+++ b/gr-digital/lib/chunks_to_symbols_impl.cc
@@ -55,10 +55,8 @@ chunks_to_symbols_impl<IN_T, OUT_T>::chunks_to_symbols_impl(
d_symbol_table(symbol_table)
{
this->message_port_register_in(pmt::mp("set_symbol_table"));
- this->set_msg_handler(
- pmt::mp("set_symbol_table"),
- boost::bind(
- &chunks_to_symbols_impl<IN_T, OUT_T>::handle_set_symbol_table, this, _1));
+ this->set_msg_handler(pmt::mp("set_symbol_table"),
+ [this](pmt::pmt_t msg) { this->handle_set_symbol_table(msg); });
}
template <class IN_T, class OUT_T>
diff --git a/gr-digital/lib/constellation_receiver_cb_impl.cc b/gr-digital/lib/constellation_receiver_cb_impl.cc
index 5ea92c4676..7cb9da68e3 100644
--- a/gr-digital/lib/constellation_receiver_cb_impl.cc
+++ b/gr-digital/lib/constellation_receiver_cb_impl.cc
@@ -49,14 +49,12 @@ constellation_receiver_cb_impl::constellation_receiver_cb_impl(
"This receiver only works with constellations of dimension 1.");
message_port_register_in(pmt::mp("set_constellation"));
- set_msg_handler(
- pmt::mp("set_constellation"),
- boost::bind(&constellation_receiver_cb_impl::handle_set_constellation, this, _1));
+ set_msg_handler(pmt::mp("set_constellation"),
+ [this](pmt::pmt_t msg) { this->handle_set_constellation(msg); });
message_port_register_in(pmt::mp("rotate_phase"));
- set_msg_handler(
- pmt::mp("rotate_phase"),
- boost::bind(&constellation_receiver_cb_impl::handle_rotate_phase, this, _1));
+ set_msg_handler(pmt::mp("rotate_phase"),
+ [this](pmt::pmt_t msg) { this->handle_rotate_phase(msg); });
}
constellation_receiver_cb_impl::~constellation_receiver_cb_impl() {}
diff --git a/gr-digital/lib/costas_loop_cc_impl.cc b/gr-digital/lib/costas_loop_cc_impl.cc
index 5f2cba275e..704f120a1a 100644
--- a/gr-digital/lib/costas_loop_cc_impl.cc
+++ b/gr-digital/lib/costas_loop_cc_impl.cc
@@ -42,7 +42,7 @@ costas_loop_cc_impl::costas_loop_cc_impl(float loop_bw, unsigned int order, bool
{
message_port_register_in(pmt::mp("noise"));
set_msg_handler(pmt::mp("noise"),
- boost::bind(&costas_loop_cc_impl::handle_set_noise, this, _1));
+ [this](pmt::pmt_t msg) { this->handle_set_noise(msg); });
}
costas_loop_cc_impl::~costas_loop_cc_impl() {}
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() {}
diff --git a/gr-digital/lib/header_payload_demux_impl.cc b/gr-digital/lib/header_payload_demux_impl.cc
index 174c2f888d..5bca908038 100644
--- a/gr-digital/lib/header_payload_demux_impl.cc
+++ b/gr-digital/lib/header_payload_demux_impl.cc
@@ -138,9 +138,8 @@ header_payload_demux_impl::header_payload_demux_impl(
}
set_tag_propagation_policy(TPP_DONT);
message_port_register_in(msg_port_id());
- set_msg_handler(
- msg_port_id(),
- boost::bind(&header_payload_demux_impl::parse_header_data_msg, this, _1));
+ set_msg_handler(msg_port_id(),
+ [this](pmt::pmt_t msg) { this->parse_header_data_msg(msg); });
for (size_t i = 0; i < special_tags.size(); i++) {
d_special_tags.push_back(pmt::string_to_symbol(special_tags[i]));
d_special_tags_last_value.push_back(pmt::PMT_NIL);
diff --git a/gr-digital/lib/protocol_formatter_async_impl.cc b/gr-digital/lib/protocol_formatter_async_impl.cc
index 5235c59746..4a794ce680 100644
--- a/gr-digital/lib/protocol_formatter_async_impl.cc
+++ b/gr-digital/lib/protocol_formatter_async_impl.cc
@@ -42,8 +42,7 @@ protocol_formatter_async_impl::protocol_formatter_async_impl(
message_port_register_out(d_hdr_port);
message_port_register_out(d_pld_port);
- set_msg_handler(d_in_port,
- boost::bind(&protocol_formatter_async_impl::append, this, _1));
+ set_msg_handler(d_in_port, [this](pmt::pmt_t msg) { this->append(msg); });
}
protocol_formatter_async_impl::~protocol_formatter_async_impl() {}