summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/multiply_matrix_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/lib/multiply_matrix_impl.cc')
-rw-r--r--gr-blocks/lib/multiply_matrix_impl.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/gr-blocks/lib/multiply_matrix_impl.cc b/gr-blocks/lib/multiply_matrix_impl.cc
index 358843abff..539432eac8 100644
--- a/gr-blocks/lib/multiply_matrix_impl.cc
+++ b/gr-blocks/lib/multiply_matrix_impl.cc
@@ -223,10 +223,7 @@ multiply_matrix_impl<gr_complex>::multiply_matrix_impl(
pmt::pmt_t port_name = pmt::string_to_symbol("set_A");
message_port_register_in(port_name);
- set_msg_handler(port_name,
- std::bind(&multiply_matrix_impl<gr_complex>::msg_handler_A,
- this,
- std::placeholders::_1));
+ set_msg_handler(port_name, [this](pmt::pmt_t msg) { this->msg_handler_A(msg); });
}
template <>
@@ -245,10 +242,7 @@ multiply_matrix_impl<float>::multiply_matrix_impl(
pmt::pmt_t port_name = pmt::string_to_symbol("set_A");
message_port_register_in(port_name);
- set_msg_handler(port_name,
- std::bind(&multiply_matrix_impl<float>::msg_handler_A,
- this,
- std::placeholders::_1));
+ set_msg_handler(port_name, [this](pmt::pmt_t msg) { this->msg_handler_A(msg); });
}