From fa8481b05fae6a7e44ca526d930993f02549234e Mon Sep 17 00:00:00 2001 From: MarcoFalke <6399679+MarcoFalke@users.noreply.github.com> Date: Tue, 7 Mar 2023 11:35:12 +0100 Subject: [PATCH] util: Work around ParseHex gcc cross compiler bug --- src/util/strencodings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/strencodings.cpp b/src/util/strencodings.cpp index 03459dcf20..a54f408496 100644 --- a/src/util/strencodings.cpp +++ b/src/util/strencodings.cpp @@ -95,8 +95,8 @@ std::optional> TryParseHex(std::string_view str) } return vch; } -template std::vector ParseHex(std::string_view); -template std::vector ParseHex(std::string_view); +template std::optional> TryParseHex(std::string_view); +template std::optional> TryParseHex(std::string_view); bool SplitHostPort(std::string_view in, uint16_t& portOut, std::string& hostOut) {