From ef1e4a4cd8ae91c1150e9b76d1d133dec3a9abe0 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 17 Aug 2017 11:31:22 +0200 Subject: [PATCH] Update iterator when doint insert in a list --- src/core/receiver/gnss_flowgraph.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/receiver/gnss_flowgraph.cc b/src/core/receiver/gnss_flowgraph.cc index 30b0e4bf2..cf1788cc0 100644 --- a/src/core/receiver/gnss_flowgraph.cc +++ b/src/core/receiver/gnss_flowgraph.cc @@ -717,7 +717,7 @@ void GNSSFlowgraph::set_signals_list() /* * Ordering the list of signals from configuration file */ - std::list::const_iterator gnss_it = available_GNSS_signals_.cbegin(); + std::list::iterator gnss_it = available_GNSS_signals_.begin(); // Pre-assignation if not defined at ChannelX.signal=1C ...? In what order? @@ -737,7 +737,7 @@ void GNSSFlowgraph::set_signals_list() { Gnss_Signal signal_value = Gnss_Signal(Gnss_Satellite(gnss_system, sat), gnss_signal); available_GNSS_signals_.remove(signal_value); - available_GNSS_signals_.insert(gnss_it, signal_value); + gnss_it = available_GNSS_signals_.insert(gnss_it, signal_value); } }