Skip to content

Commit

Permalink
Work around (2) clang vector.emplace_back bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Apr 19, 2024
1 parent f4065e2 commit 5ec5d57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/bitcoin/database/impl/query/translate.ipp
Expand Up @@ -231,9 +231,8 @@ inline strong_pairs CLASS::to_strongs(const hash_digest& tx_hash) const NOEXCEPT
strong_pairs strongs{};
do
{
// clang emplace_back bug (no matching constructor), using push_back.
for (const auto& link: to_blocks(it.self()))
strongs.push_back({ link, it.self() });
strongs.emplace_back(header_link{ link }, it.self());
}
while (it.advance());
return strongs;
Expand Down

0 comments on commit 5ec5d57

Please sign in to comment.