This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit c31048a8804aece0798629ea688ceee868632aea Author: Damian Meden <dme...@apache.org> AuthorDate: Mon Apr 15 18:04:26 2024 +0200 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. (cherry picked from commit 45f00b5ee22f56768ad86e7d10c0e87fdf26c19d) --- lib/swoc/include/swoc/Lexicon.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/swoc/include/swoc/Lexicon.h b/lib/swoc/include/swoc/Lexicon.h index c574bc7548..6bb048421a 100644 --- a/lib/swoc/include/swoc/Lexicon.h +++ b/lib/swoc/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>