From: Louis Dionne Date: Tue, 7 Feb 2023 01:33:20 +0000 (-0800) Subject: [libc++] Add missing _LIBCPP_HIDE_FROM_ABI X-Git-Tag: upstream/17.0.6~18388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd6a982c89cf80caf339ec5d46f0a0b4d2afa29d;p=platform%2Fupstream%2Fllvm.git [libc++] Add missing _LIBCPP_HIDE_FROM_ABI Differential Revision: https://reviews.llvm.org/D143451 --- 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