summaryrefslogtreecommitdiff
path: root/gr-uhd/examples/c++
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2020-03-22 14:55:14 +0000
committerMartin Braun <martin@gnuradio.org>2020-03-27 08:45:52 -0700
commit5a9f864c9befdee426da6ddaec6e96c63e571bc3 (patch)
treee1529ddef962be3843eefb94d8619b79a79c8aca /gr-uhd/examples/c++
parent414a495d639ffb817dd3c04d771719e938f50daf (diff)
Replace BOOST_FOREACH with C++11 range for
Diffstat (limited to 'gr-uhd/examples/c++')
-rw-r--r--gr-uhd/examples/c++/tag_sink_demo.h3
-rw-r--r--gr-uhd/examples/c++/tag_source_demo.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/gr-uhd/examples/c++/tag_sink_demo.h b/gr-uhd/examples/c++/tag_sink_demo.h
index 2f60be225e..f123bc3993 100644
--- a/gr-uhd/examples/c++/tag_sink_demo.h
+++ b/gr-uhd/examples/c++/tag_sink_demo.h
@@ -9,7 +9,6 @@
#include <gnuradio/io_signature.h>
#include <gnuradio/sync_block.h>
-#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <complex>
#include <iostream>
@@ -39,7 +38,7 @@ public:
pmt::string_to_symbol("rx_time"));
// print all tags
- BOOST_FOREACH (const gr::tag_t& rx_time_tag, rx_time_tags) {
+ for (const auto& rx_time_tag : rx_time_tags) {
const uint64_t offset = rx_time_tag.offset;
const pmt::pmt_t& value = rx_time_tag.value;
diff --git a/gr-uhd/examples/c++/tag_source_demo.h b/gr-uhd/examples/c++/tag_source_demo.h
index 2c48425423..623a902d68 100644
--- a/gr-uhd/examples/c++/tag_source_demo.h
+++ b/gr-uhd/examples/c++/tag_source_demo.h
@@ -9,7 +9,6 @@
#include <gnuradio/io_signature.h>
#include <gnuradio/sync_block.h>
-#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <complex>
#include <iostream>