From fcc2e9c602a6103dfd0f75e035f614b177c5dc35 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 28 Sep 2019 12:54:27 +0200 Subject: uhd: Replace boost::function with std::function This is mostly a search-and-replace operation, with few exceptions: - boost::function has a clear() method. In C++11, this is achieved by assigning nullptr to the std::function object. - The empty() method is replaced by std::function's bool() operator --- host/examples/rfnoc_rx_to_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples/rfnoc_rx_to_file.cpp') diff --git a/host/examples/rfnoc_rx_to_file.cpp b/host/examples/rfnoc_rx_to_file.cpp index 7908b2ef6..2211831aa 100644 --- a/host/examples/rfnoc_rx_to_file.cpp +++ b/host/examples/rfnoc_rx_to_file.cpp @@ -176,7 +176,7 @@ void recv_to_file(uhd::rx_streamer::sptr rx_stream, } } -typedef boost::function get_sensor_fn_t; +typedef std::function get_sensor_fn_t; bool check_locked_sensor(std::vector sensor_names, const char* sensor_name, -- cgit v1.2.3