aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/gain_group_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/tests/gain_group_test.cpp')
-rw-r--r--host/tests/gain_group_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/tests/gain_group_test.cpp b/host/tests/gain_group_test.cpp
index 2608f292d..9680fa2a0 100644
--- a/host/tests/gain_group_test.cpp
+++ b/host/tests/gain_group_test.cpp
@@ -6,9 +6,9 @@
//
#include <uhd/utils/gain_group.hpp>
-#include <boost/bind.hpp>
#include <boost/math/special_functions/round.hpp>
#include <boost/test/unit_test.hpp>
+#include <functional>
#include <iostream>
#define rint(x) boost::math::iround(x)
@@ -75,14 +75,14 @@ static gain_group::sptr get_gain_group(size_t pri1 = 0, size_t pri2 = 0)
gain_group::sptr gg(gain_group::make());
// load gain group with function sets
- gain_fcns.get_range = boost::bind(&gain_element1::get_range, &g1);
- gain_fcns.get_value = boost::bind(&gain_element1::get_value, &g1);
- gain_fcns.set_value = boost::bind(&gain_element1::set_value, &g1, _1);
+ gain_fcns.get_range = std::bind(&gain_element1::get_range, &g1);
+ gain_fcns.get_value = std::bind(&gain_element1::get_value, &g1);
+ gain_fcns.set_value = std::bind(&gain_element1::set_value, &g1, std::placeholders::_1);
gg->register_fcns("g1", gain_fcns, pri1);
- gain_fcns.get_range = boost::bind(&gain_element2::get_range, &g2);
- gain_fcns.get_value = boost::bind(&gain_element2::get_value, &g2);
- gain_fcns.set_value = boost::bind(&gain_element2::set_value, &g2, _1);
+ gain_fcns.get_range = std::bind(&gain_element2::get_range, &g2);
+ gain_fcns.get_value = std::bind(&gain_element2::get_value, &g2);
+ gain_fcns.set_value = std::bind(&gain_element2::set_value, &g2, std::placeholders::_1);
gg->register_fcns("g2", gain_fcns, pri2);
return gg;