Skip to content

btc(msvc): disambiguate second HexStr C2668 at coin/node.hpp:131#717

Merged
frstrtr merged 1 commit into
masterfrom
btc/hexstr-msvc-node-disambig
Jul 16, 2026
Merged

btc(msvc): disambiguate second HexStr C2668 at coin/node.hpp:131#717
frstrtr merged 1 commit into
masterfrom
btc/hexstr-msvc-node-disambig

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Fixes the sole remaining v0.2.1 Windows build failure (run 29467003679): node.hpp(131,40): C2668 ambiguous HexStr.

Same MSVC ambiguity #711 fixed in share_tracker.hpp, at a second call site (block-submit RPC fallback). std::vector<unsigned char> is viable for all three Span overloads; feed the exact Span<const uint8_t> — byte-identical to the #711 pattern.

Swept every HexStr site reachable from the MSVC btc build: the only other bare-container sites (config_coin prefix, config_pool m_prefix) are std::vector<std::byte>, which match a single overload and are already unambiguous. No third site remains.

MSVC C2668: HexStr(std::vector<unsigned char>) is viable for all three
Span overloads (uint8_t/char/std::byte). This is the SAME ambiguity #711
fixed in share_tracker.hpp, at a second call site the block-submit
fallback path uses. Feed the exact Span<const uint8_t> the intended
overload wants, matching the #711 pattern byte-for-byte.

Swept all HexStr call sites reachable from the MSVC btc build: the only
other bare-container sites (config_coin prefix, config_pool m_prefix) are
std::vector<std::byte>, which match a single overload and are already
unambiguous. No third site remains.
@frstrtr frstrtr added the SAFE-COSMETIC Operator-sanctioned cosmetic change eligible for HMAC-gated auto-merge label Jul 16, 2026
@frstrtr
frstrtr merged commit 75dda5b into master Jul 16, 2026
27 checks passed
@frstrtr
frstrtr deleted the btc/hexstr-msvc-node-disambig branch July 16, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SAFE-COSMETIC Operator-sanctioned cosmetic change eligible for HMAC-gated auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant