From bd6a982c89cf80caf339ec5d46f0a0b4d2afa29d Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 6 Feb 2023 17:33:20 -0800 Subject: [PATCH] [libc++] Add missing _LIBCPP_HIDE_FROM_ABI Differential Revision: https://reviews.llvm.org/D143451 --- libcxx/include/string | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libcxx/include/string b/libcxx/include/string index 9f5838d..98d6c14 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -4445,11 +4445,11 @@ const typename basic_string<_CharT, _Traits, _Allocator>::size_type basic_string<_CharT, _Traits, _Allocator>::npos; template -struct __string_hash : public __unary_function, _Allocator>, size_t> -{ - size_t - operator()(const basic_string<_CharT, char_traits<_CharT>, _Allocator>& __val) const _NOEXCEPT - { return std::__do_string_hash(__val.data(), __val.data() + __val.size()); } +struct __string_hash : public __unary_function, _Allocator>, size_t> { + _LIBCPP_HIDE_FROM_ABI size_t + operator()(const basic_string<_CharT, char_traits<_CharT>, _Allocator>& __val) const _NOEXCEPT { + return std::__do_string_hash(__val.data(), __val.data() + __val.size()); + } }; template -- 2.7.4