From 26cc20847cde543e759aa5cee9a27eaa69c5dd9e Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Thu, 9 Feb 2017 23:19:55 -0800 Subject: 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. --- host/lib/device3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/device3.cpp') diff --git a/host/lib/device3.cpp b/host/lib/device3.cpp index 3b316e8ea..e1f53656f 100644 --- a/host/lib/device3.cpp +++ b/host/lib/device3.cpp @@ -68,7 +68,7 @@ std::vector device3::find_blocks(const std::string &block_id_ void device3::clear() { - BOOST_FOREACH(const block_ctrl_base::sptr &block, _rfnoc_block_ctrl) { + for(const block_ctrl_base::sptr &block: _rfnoc_block_ctrl) { block->clear(); } } -- cgit v1.2.3