summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/message_strobe_impl.cc
diff options
context:
space:
mode:
authorJohannes Demel <demel@ant.uni-bremen.de>2020-05-09 14:25:32 +0200
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commitd584e7e9be13b500a8bc9a85f37d1cd51b0e0be5 (patch)
tree9e30cecfdeed04cb32263f7b9509291e0d6fbf40 /gr-blocks/lib/message_strobe_impl.cc
parenta6a1954f83478aff0c4fc53d0e8f51b49d51cc1e (diff)
msg_handler: Use lambdas to set msg handlers
With this commit, all calls to `set_msg_handler` in `gr-blocks` use lambdas. This helps to use `std::function` instead of `boost::function`.
Diffstat (limited to 'gr-blocks/lib/message_strobe_impl.cc')
-rw-r--r--gr-blocks/lib/message_strobe_impl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc
index 4f1f7b5ff9..33215a5a81 100644
--- a/gr-blocks/lib/message_strobe_impl.cc
+++ b/gr-blocks/lib/message_strobe_impl.cc
@@ -41,9 +41,7 @@ message_strobe_impl::message_strobe_impl(pmt::pmt_t msg, long period_ms)
message_port_register_out(d_port);
message_port_register_in(pmt::mp("set_msg"));
- set_msg_handler(
- pmt::mp("set_msg"),
- std::bind(&message_strobe_impl::set_msg, this, std::placeholders::_1));
+ set_msg_handler(pmt::mp("set_msg"), [this](pmt::pmt_t msg) { this->set_msg(msg); });
}
message_strobe_impl::~message_strobe_impl() {}