diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-09-28 11:50:22 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:32 -0800 |
commit | 0c43030e71f4786bf1ba1b7f08abf6b3d019761f (patch) | |
tree | 2abf254f18b327e9450d20379040aa1da1280a58 /host/examples/test_dboard_coercion.cpp | |
parent | 1fe98e8701dd0b790b172762c3629db32956d1fc (diff) | |
download | uhd-0c43030e71f4786bf1ba1b7f08abf6b3d019761f.tar.gz uhd-0c43030e71f4786bf1ba1b7f08abf6b3d019761f.tar.bz2 uhd-0c43030e71f4786bf1ba1b7f08abf6b3d019761f.zip |
uhd: Replace BOOST_FOREACH(v, c) with for(v : c)
Also removes all references to boost/foreach.hpp. BOOST_FOREACH is no
longer necessary since all headers require C++11 anyway.
Diffstat (limited to 'host/examples/test_dboard_coercion.cpp')
-rw-r--r-- | host/examples/test_dboard_coercion.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/host/examples/test_dboard_coercion.cpp b/host/examples/test_dboard_coercion.cpp index 8ea2446fa..0fb6f1872 100644 --- a/host/examples/test_dboard_coercion.cpp +++ b/host/examples/test_dboard_coercion.cpp @@ -22,7 +22,6 @@ static const double SAMP_RATE = 1e6; namespace po = boost::program_options; -typedef std::pair<double, double> double_pair; // BOOST_FOREACH doesn't like commas typedef std::vector<std::pair<double, double>> pair_vector; /************************************************************************ @@ -340,7 +339,7 @@ std::string coercion_test(uhd::usrp::multi_usrp::sptr usrp, } else { results += "USRP did not successfully set gain under the following circumstances:"; - for (double_pair bad_pair : bad_gain_vals) { + for (auto& bad_pair : bad_gain_vals) { double bad_freq = bad_pair.first; double bad_gain = bad_pair.second; results += str(boost::format("\nFrequency: %s, Gain: %5.2f") |