summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib
diff options
context:
space:
mode:
authorJohannes Demel <demel@ant.uni-bremen.de>2020-05-02 15:36:51 +0200
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:48 -0400
commita6a1954f83478aff0c4fc53d0e8f51b49d51cc1e (patch)
tree933ed1043c7c379e7d3f220aae96fdccd052c1fe /gnuradio-runtime/lib
parent3165f73d7c6224523957fa69beade6069efea6ef (diff)
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.
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r--gnuradio-runtime/lib/block.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index ebfeba23ba..b10ae97072 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -49,7 +49,8 @@ block::block(const std::string& name,
{
global_block_registry.register_primitive(alias(), this);
message_port_register_in(d_system_port);
- set_msg_handler(d_system_port, boost::bind(&block::system_handler, this, _1));
+ set_msg_handler(d_system_port,
+ std::bind(&block::system_handler, this, std::placeholders::_1));
}
block::~block() { global_block_registry.unregister_primitive(symbol_name()); }