From 80c2ac7135b59ccb5e853fc956d23398b8aee5d8 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 8 Aug 2025 20:52:50 +0200 Subject: [PATCH] Make the fix C++14 compatible --- src/algorithms/PVT/libs/an_packet_printer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/PVT/libs/an_packet_printer.cc b/src/algorithms/PVT/libs/an_packet_printer.cc index 3fc5712de..e1f3ff1ed 100644 --- a/src/algorithms/PVT/libs/an_packet_printer.cc +++ b/src/algorithms/PVT/libs/an_packet_printer.cc @@ -104,7 +104,7 @@ void An_Packet_Printer::update_sdr_gnss_packet(sdr_gnss_packet_t* _packet, const uint8_t num_gal_sats = 0; std::size_t index = 0; bool fix_3d = pvt->is_valid_position(); - const auto max_reported_sats = std::size(_packet->sats); + const auto max_reported_sats = sizeof(_packet->sats) / sizeof(_packet->sats[0]); for (gnss_observables_iter = gnss_observables_map.cbegin(); gnss_observables_iter != gnss_observables_map.cend();