diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2017-02-09 23:19:55 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-02-10 16:44:33 -0800 |
commit | 26cc20847cde543e759aa5cee9a27eaa69c5dd9e (patch) | |
tree | eee102333381e2313af59e725d6b7a06b665161f /host/utils/uhd_find_devices.cpp | |
parent | f3a004faf7d50cbb5564f5e2f67f54ee07e051dd (diff) | |
download | uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.gz uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.tar.bz2 uhd-26cc20847cde543e759aa5cee9a27eaa69c5dd9e.zip |
uhd: replace BOOST_FOREACH with C++11 range-based for loop
Note: This is the first commit that uses for-range, and range-based
for-loops are now usable for UHD development.
Diffstat (limited to 'host/utils/uhd_find_devices.cpp')
-rw-r--r-- | host/utils/uhd_find_devices.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/uhd_find_devices.cpp b/host/utils/uhd_find_devices.cpp index 0ef1055cf..e74307695 100644 --- a/host/utils/uhd_find_devices.cpp +++ b/host/utils/uhd_find_devices.cpp @@ -55,14 +55,14 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ for (auto it = device_addrs.begin(); it != device_addrs.end(); ++it) { std::string serial = (*it)["serial"]; found_devices[serial] = device_multi_addrs_t(); - BOOST_FOREACH (std::string key, it->keys()) { + for(std::string key: it->keys()) { if (key != "serial") { found_devices[serial][key].insert(it->get(key)); } } for (auto sit = it + 1; sit != device_addrs.end();) { if ((*sit)["serial"] == serial) { - BOOST_FOREACH (std::string key, sit->keys()) { + for(std::string key: sit->keys()) { if (key != "serial") { found_devices[serial][key].insert(sit->get(key)); } |