From 37280c6ff8d42a18d3e4471e4dfe7ab5c050d36f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 10 Mar 2018 20:57:47 +0100 Subject: Don't use extended initialiser lists in gps_ctrl --- host/lib/usrp/gps_ctrl.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp index 12237ff43..990005c93 100644 --- a/host/lib/usrp/gps_ctrl.cpp +++ b/host/lib/usrp/gps_ctrl.cpp @@ -253,7 +253,9 @@ private: std::map msgs; if (_gps_type == GPS_TYPE_LEA_M8F) { - keys = {"GNGGA", "GNRMC", "TIMELOCK"}; + keys.push_back("GNGGA"); + keys.push_back("GNRMC"); + keys.push_back("TIMELOCK"); // Concatenate all incoming data into the deque for (std::string msg = _recv(); msg.length() > 0; msg = _recv()) @@ -336,7 +338,9 @@ private: } } else { - keys = {"GPGGA", "GPRMC", "SERVO"}; + keys.push_back("GPGGA"); + keys.push_back("GPRMC"); + keys.push_back("SERVO"); static const boost::regex servo_regex("^\\d\\d-\\d\\d-\\d\\d.*$"); static const boost::regex gp_msg_regex("^\\$GP.*,\\*[0-9A-F]{2}$"); -- cgit v1.2.3