aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/usrp/common/adf435x.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-09-28 12:54:27 +0200
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:32 -0800
commitfcc2e9c602a6103dfd0f75e035f614b177c5dc35 (patch)
tree8c6162ab134a79f343b8404f1d82b6bd9483d116 /host/lib/include/uhdlib/usrp/common/adf435x.hpp
parent0c43030e71f4786bf1ba1b7f08abf6b3d019761f (diff)
downloaduhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.tar.gz
uhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.tar.bz2
uhd-fcc2e9c602a6103dfd0f75e035f614b177c5dc35.zip
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
Diffstat (limited to 'host/lib/include/uhdlib/usrp/common/adf435x.hpp')
-rw-r--r--host/lib/include/uhdlib/usrp/common/adf435x.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/adf435x.hpp b/host/lib/include/uhdlib/usrp/common/adf435x.hpp
index 6f654bcbb..886c8d335 100644
--- a/host/lib/include/uhdlib/usrp/common/adf435x.hpp
+++ b/host/lib/include/uhdlib/usrp/common/adf435x.hpp
@@ -15,7 +15,7 @@
#include <uhd/types/ranges.hpp>
#include <uhd/utils/log.hpp>
#include <uhdlib/utils/math.hpp>
-#include <boost/function.hpp>
+#include <functional>
#include <boost/math/special_functions/round.hpp>
#include <boost/thread.hpp>
#include <vector>
@@ -24,7 +24,7 @@ class adf435x_iface
{
public:
typedef std::shared_ptr<adf435x_iface> sptr;
- typedef boost::function<void(std::vector<uint32_t>)> write_fn_t;
+ typedef std::function<void(std::vector<uint32_t>)> write_fn_t;
static sptr make_adf4350(write_fn_t write);
static sptr make_adf4351(write_fn_t write);