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_strobe_impl.cc | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'gr-blocks/lib/message_strobe_impl.cc')

diff --git a/gr-blocks/lib/message_strobe_impl.cc b/gr-blocks/lib/message_strobe_impl.cc
index 9a601c6cb7..4f1f7b5ff9 100644
--- a/gr-blocks/lib/message_strobe_impl.cc
+++ b/gr-blocks/lib/message_strobe_impl.cc
@@ -41,8 +41,9 @@ 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"),
-                    boost::bind(&message_strobe_impl::set_msg, this, _1));
+    set_msg_handler(
+        pmt::mp("set_msg"),
+        std::bind(&message_strobe_impl::set_msg, this, std::placeholders::_1));
 }
 
 message_strobe_impl::~message_strobe_impl() {}
@@ -53,7 +54,7 @@ bool message_strobe_impl::start()
     // nothing breaks on concurrent access, I'll just leave it as bool.
     d_finished = false;
     d_thread = std::shared_ptr<gr::thread::thread>(
-        new gr::thread::thread(boost::bind(&message_strobe_impl::run, this)));
+        new gr::thread::thread(std::bind(&message_strobe_impl::run, this)));
 
     return block::start();
 }
-- 
cgit v1.2.3