From 0c43030e71f4786bf1ba1b7f08abf6b3d019761f Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 28 Sep 2019 11:50:22 +0200 Subject: 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. --- host/examples/twinrx_freq_hopping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/examples/twinrx_freq_hopping.cpp') 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 fft = ascii_art_dft::log_pwr_dft(&buff.front(), buff.size()); ofile.write((char*)&fft[0], (sizeof(float) * fft.size())); } -- cgit v1.2.3