Skip to content

Commit

Permalink
fix compilation with GCC7
Browse files Browse the repository at this point in the history
CTAD is not working here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and Mic92 committed Jun 15, 2024
1 parent 7c2f768 commit a0f5433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patchelf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,7 @@ void ElfFile<ElfFileParamNames>::rebuildGnuHashTable(span<char> strTab, span<Elf
// all tables that refer to symbols through indexes in the symbol table
auto reorderSpan = [] (auto dst, auto& old2new)
{
std::vector tmp(dst.begin(), dst.end());
std::vector<std::remove_reference_t<decltype(dst[0])>> tmp(dst.begin(), dst.end());
for (size_t i = 0; i < tmp.size(); ++i)
dst[old2new[i]] = tmp[i];
};
Expand Down

0 comments on commit a0f5433

Please sign in to comment.