Skip to content

Commit cc0e2d1

Browse files
committed
merge bitcoin#27218: Work around ParseHex gcc cross compiler bug
1 parent b8c3535 commit cc0e2d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/strencodings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ std::optional<std::vector<Byte>> TryParseHex(std::string_view str)
9696
}
9797
return vch;
9898
}
99-
template std::vector<std::byte> ParseHex(std::string_view);
100-
template std::vector<uint8_t> ParseHex(std::string_view);
99+
template std::optional<std::vector<std::byte>> TryParseHex(std::string_view);
100+
template std::optional<std::vector<uint8_t>> TryParseHex(std::string_view);
101101

102102
bool SplitHostPort(std::string_view in, uint16_t& portOut, std::string& hostOut)
103103
{

0 commit comments

Comments
 (0)