From a6a1954f83478aff0c4fc53d0e8f51b49d51cc1e Mon Sep 17 00:00:00 2001 From: Johannes Demel <demel@ant.uni-bremen.de> Date: Sat, 2 May 2020 15:36:51 +0200 Subject: msg_handler: Switch from boost::function to std::function This commit is a first stab at moving from `boost::function` to `std::function`. For now, it does only update gr-blocks. Also, this requires more testing. If others can confirm that this change works, I'll continue to update all modules. --- gr-blocks/lib/message_debug_impl.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gr-blocks/lib/message_debug_impl.cc') diff --git a/gr-blocks/lib/message_debug_impl.cc b/gr-blocks/lib/message_debug_impl.cc index a9c7fbbe99..55352f6e62 100644 --- a/gr-blocks/lib/message_debug_impl.cc +++ b/gr-blocks/lib/message_debug_impl.cc @@ -78,14 +78,17 @@ message_debug_impl::message_debug_impl() : block("message_debug", io_signature::make(0, 0, 0), io_signature::make(0, 0, 0)) { message_port_register_in(pmt::mp("print")); - set_msg_handler(pmt::mp("print"), boost::bind(&message_debug_impl::print, this, _1)); + set_msg_handler(pmt::mp("print"), + std::bind(&message_debug_impl::print, this, std::placeholders::_1)); message_port_register_in(pmt::mp("store")); - set_msg_handler(pmt::mp("store"), boost::bind(&message_debug_impl::store, this, _1)); + set_msg_handler(pmt::mp("store"), + std::bind(&message_debug_impl::store, this, std::placeholders::_1)); message_port_register_in(pmt::mp("print_pdu")); - set_msg_handler(pmt::mp("print_pdu"), - boost::bind(&message_debug_impl::print_pdu, this, _1)); + set_msg_handler( + pmt::mp("print_pdu"), + std::bind(&message_debug_impl::print_pdu, this, std::placeholders::_1)); } message_debug_impl::~message_debug_impl() {} -- cgit v1.2.3