summaryrefslogtreecommitdiff
path: root/gr-digital/lib/constellation_receiver_cb_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-digital/lib/constellation_receiver_cb_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-digital/lib/constellation_receiver_cb_impl.cc')
-rw-r--r--gr-digital/lib/constellation_receiver_cb_impl.cc10
1 files changed, 4 insertions, 6 deletions
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() {}