Skip to content

Commit

Permalink
Work around 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 10e5d7b commit f4065e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/bitcoin/database/impl/query/translate.ipp
Expand Up @@ -231,8 +231,9 @@ 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.emplace_back(link, it.self());
strongs.push_back({ link, it.self() });
}
while (it.advance());
return strongs;
Expand Down

0 comments on commit f4065e2

Please sign in to comment.