From 5d9a7c92d3eb0a9cb719e6e6386d533da59a51db Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 26 Apr 2018 13:13:32 -0700 Subject: lib: Purge use of boost::assign, except for uhd::dict Replaced with initialization lists. Note: uhd::dict does not work with initializer lists without making changes to said data structure. This commit has no functional changes, so keeping the boost::assigns for uhd::dict. --- host/lib/usrp/b100/clock_ctrl.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/b100') diff --git a/host/lib/usrp/b100/clock_ctrl.cpp b/host/lib/usrp/b100/clock_ctrl.cpp index c06b44c49..58e57d7b5 100644 --- a/host/lib/usrp/b100/clock_ctrl.cpp +++ b/host/lib/usrp/b100/clock_ctrl.cpp @@ -14,7 +14,6 @@ #include #include #include "b100_regs.hpp" //spi slave constants -#include #include #include //gcd #include @@ -516,11 +515,14 @@ private: void send_all_regs(void){ //setup a list of register ranges to write typedef std::pair range_t; - static const std::vector ranges = boost::assign::list_of - (range_t(0x000, 0x000)) (range_t(0x010, 0x01F)) - (range_t(0x0F0, 0x0FD)) (range_t(0x190, 0x19B)) - (range_t(0x1E0, 0x1E1)) (range_t(0x230, 0x230)) - ; + static const std::vector ranges{ + range_t(0x000, 0x000), + range_t(0x010, 0x01F), + range_t(0x0F0, 0x0FD), + range_t(0x190, 0x19B), + range_t(0x1E0, 0x1E1), + range_t(0x230, 0x230) + }; //write initial register values and latch/update for(const range_t &range: ranges){ -- cgit v1.2.3