From d62a0bd81eac692c94955238a0e476d7afc9eb23 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 3 Jul 2022 23:28:41 -0500 Subject: [PATCH] Instantiate `tr_parseNum()` template using basic types (#3404) There're places where e.g. `size_t` is used which may or may not match one of `(u)intXX_t` types. Authored-by: Mike Gelfand --- libtransmission/utils.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libtransmission/utils.cc b/libtransmission/utils.cc index e8d1f76bd..13e1de0e1 100644 --- a/libtransmission/utils.cc +++ b/libtransmission/utils.cc @@ -1415,13 +1415,15 @@ template::value, bool>> #endif // #if defined(__GNUC__) && !__has_include() -template std::optional tr_parseNum(std::string_view& sv, int base); -template std::optional tr_parseNum(std::string_view& sv, int base); -template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); -template std::optional tr_parseNum(std::string_view& sv, int base); -template std::optional tr_parseNum(std::string_view& sv, int base); -template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); +template std::optional tr_parseNum(std::string_view& sv, int base); template::value, bool>> [[nodiscard]] std::optional tr_parseNum(std::string_view& sv)