Skip to content

Commit fa8481b

Browse files
committed
util: Work around ParseHex gcc cross compiler bug
1 parent 5e1aab2 commit fa8481b

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
@@ -95,8 +95,8 @@ std::optional<std::vector<Byte>> TryParseHex(std::string_view str)
9595
}
9696
return vch;
9797
}
98-
template std::vector<std::byte> ParseHex(std::string_view);
99-
template std::vector<uint8_t> ParseHex(std::string_view);
98+
template std::optional<std::vector<std::byte>> TryParseHex(std::string_view);
99+
template std::optional<std::vector<uint8_t>> TryParseHex(std::string_view);
100100

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

0 commit comments

Comments
 (0)