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/gpsd_iface.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'host/lib/usrp/gpsd_iface.cpp') diff --git a/host/lib/usrp/gpsd_iface.cpp b/host/lib/usrp/gpsd_iface.cpp index 49880c8f7..6b47b6be5 100644 --- a/host/lib/usrp/gpsd_iface.cpp +++ b/host/lib/usrp/gpsd_iface.cpp @@ -6,12 +6,11 @@ // #include +#include #include -#include #include -#include #include "boost/date_time/gregorian/gregorian.hpp" #include #include @@ -53,9 +52,13 @@ public: boost::thread t(boost::bind(&gpsd_iface_impl::_thread_fcn ,this)); _bthread.swap(t); - - _sensors = boost::assign::list_of("gps_locked")("gps_time") \ - ("gps_position")("gps_gpgga")("gps_gprmc").to_container(_sensors); + _sensors = { + "gps_locked", + "gps_time", + "gps_position", + "gps_gpgga", + "gps_gprmc" + }; } virtual ~gpsd_iface_impl(void) -- cgit v1.2.3