aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/twinrx_freq_hopping.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-09-28 11:50:22 +0200
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:32 -0800
commit0c43030e71f4786bf1ba1b7f08abf6b3d019761f (patch)
tree2abf254f18b327e9450d20379040aa1da1280a58 /host/examples/twinrx_freq_hopping.cpp
parent1fe98e8701dd0b790b172762c3629db32956d1fc (diff)
downloaduhd-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/twinrx_freq_hopping.cpp')
-rw-r--r--host/examples/twinrx_freq_hopping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/examples/twinrx_freq_hopping.cpp b/host/examples/twinrx_freq_hopping.cpp
index d32a3e660..0dca1ee83 100644
--- a/host/examples/twinrx_freq_hopping.cpp
+++ b/host/examples/twinrx_freq_hopping.cpp
@@ -91,7 +91,7 @@ static void write_fft_to_file(const std::string& fft_path)
{
std::cout << "Calculating FFTs (this may take a while)... " << std::flush;
std::ofstream ofile(fft_path.c_str(), std::ios::binary);
- BOOST_FOREACH (const recv_buff_t& buff, buffs) {
+ for (const recv_buff_t& buff : buffs) {
std::vector<float> fft = ascii_art_dft::log_pwr_dft(&buff.front(), buff.size());
ofile.write((char*)&fft[0], (sizeof(float) * fft.size()));
}