This is an automated email from the ASF dual-hosted git repository. bneradt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git
commit 676fc8d7d73c5b461f07670247375f0a052121a2 Author: Brian Neradt <brian.ner...@gmail.com> AuthorDate: Mon Apr 15 16:44:34 2024 +0000 libswoc: fix unresolved function type for transform_view_of. (#11255) On some compilers this was showing an error as they weren't able to decude the right function/type. --- code/include/swoc/Lexicon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/include/swoc/Lexicon.h b/code/include/swoc/Lexicon.h index c574bc7..6bb0484 100644 --- a/code/include/swoc/Lexicon.h +++ b/code/include/swoc/Lexicon.h @@ -13,6 +13,7 @@ #include <functional> #include <array> #include <variant> +#include <ctype.h> #include "swoc/swoc_version.h" #include "swoc/IntrusiveHashMap.h" @@ -567,7 +568,7 @@ Lexicon<E>::Item::ValueLinkage::key_of(Item *item) { template <typename E> uint32_t Lexicon<E>::Item::NameLinkage::hash_of(std::string_view s) { - return Hash32FNV1a().hash_immediate(transform_view_of(&toupper, s)); + return Hash32FNV1a().hash_immediate(transform_view_of(&::toupper, s)); } template <typename E>