Skip to content

Commit

Permalink
C++17 structured binding is not supported on all our compilers.
Browse files Browse the repository at this point in the history
On aarch64, the compiler is a bit too old.
  • Loading branch information
mgautierfr committed Nov 6, 2023
1 parent 5466abe commit 7a70ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ namespace zim

Entry Archive::getEntryByUrl(const std::string& url) const

Check warning on line 253 in src/archive.cpp

View check run for this annotation

Codecov / codecov/patch

src/archive.cpp#L253

Added line #L253 was not covered by tests
{
const auto [path, queryParams] = urlSplit(url);
std::string path;
std::vector<std::pair<std::string, std::string>> queryParams;

Check warning on line 256 in src/archive.cpp

View check run for this annotation

Codecov / codecov/patch

src/archive.cpp#L255-L256

Added lines #L255 - L256 were not covered by tests
std::tie(path, queryParams) = urlSplit(url);
try {
return getEntryByPath(path);
} catch (const EntryNotFound& e) {
Expand Down

0 comments on commit 7a70ac0

Please sign in to comment.