This is an automated email from the ASF dual-hosted git repository.
dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 45f00b5ee2 libswoc: fix unresolved function type for
transform_view_of. (#11255)
45f00b5ee2 is described below
commit 45f00b5ee22f56768ad86e7d10c0e87fdf26c19d
Author: Damian Meden <[email protected]>
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.
---
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>