summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/nop_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/nop_impl.cc')
-rw-r--r--gr-blocks/lib/nop_impl.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-blocks/lib/nop_impl.cc b/gr-blocks/lib/nop_impl.cc
index 042db40da9..5ed25f5d1a 100644
--- a/gr-blocks/lib/nop_impl.cc
+++ b/gr-blocks/lib/nop_impl.cc
@@ -32,9 +32,8 @@ nop_impl::nop_impl(size_t sizeof_stream_item)
{
// Arrange to have count_received_msgs called when messages are received.
message_port_register_in(pmt::mp("port"));
- set_msg_handler(
- pmt::mp("port"),
- std::bind(&nop_impl::count_received_msgs, this, std::placeholders::_1));
+ set_msg_handler(pmt::mp("port"),
+ [this](pmt::pmt_t msg) { this->count_received_msgs(msg); });
}
nop_impl::~nop_impl() {}