Skip to content

Commit a0f5433

Browse files
nehebMic92
authored andcommitted
fix compilation with GCC7
CTAD is not working here. Signed-off-by: Rosen Penev <[email protected]>
1 parent 7c2f768 commit a0f5433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patchelf.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2072,7 +2072,7 @@ void ElfFile<ElfFileParamNames>::rebuildGnuHashTable(span<char> strTab, span<Elf
20722072
// all tables that refer to symbols through indexes in the symbol table
20732073
auto reorderSpan = [] (auto dst, auto& old2new)
20742074
{
2075-
std::vector tmp(dst.begin(), dst.end());
2075+
std::vector<std::remove_reference_t<decltype(dst[0])>> tmp(dst.begin(), dst.end());
20762076
for (size_t i = 0; i < tmp.size(); ++i)
20772077
dst[old2new[i]] = tmp[i];
20782078
};

0 commit comments

Comments
 (0)