From b01be3d3e77d58e37728333ef4ec89e14c7b08f8 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 6 Nov 2023 13:49:23 +0100 Subject: [PATCH] C++17 structured binding is not supported on all our compilers. On aarch64, the compiler is a bit too old. --- src/archive.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/archive.cpp b/src/archive.cpp index 7f3980686..0f4751859 100644 --- a/src/archive.cpp +++ b/src/archive.cpp @@ -252,7 +252,9 @@ namespace zim Entry Archive::getEntryByUrl(const std::string& url) const { - const auto [path, queryParams] = urlSplit(url); + std::string path; + std::vector> queryParams; + std::tie(path, queryParams) = urlSplit(url); try { return getEntryByPath(path); } catch (const EntryNotFound& e) {