Skip to content

Commit 73bb7bf

Browse files
authored
Merge pull request #711 from frstrtr/btc/hexstr-msvc-disambig
btc: disambiguate HexStr overload for MSVC (share_tracker.hpp:551) — last coin for all-5 Windows v0.2.1
2 parents 0960218 + da86b21 commit 73bb7bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/impl/btc/share_tracker.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ class ShareTracker
548548
if constexpr (requires { s->m_pubkey_hash; })
549549
miner = s->m_pubkey_hash.GetHex();
550550
else if constexpr (requires { s->m_address; })
551-
miner = HexStr(s->m_address.m_data);
551+
// MSVC: disambiguate HexStr overload (std::vector<unsigned char> is viable
552+
// for all span overloads). Feed the exact byte span the uint8_t overload wants.
553+
miner = HexStr(Span<const uint8_t>(s->m_address.m_data.data(), s->m_address.m_data.size()));
552554
m_on_share_difficulty(diff, miner);
553555
});
554556
}

0 commit comments

Comments
 (0)