From 9ccdd5fb1748811722e4ce775d3663941770f0b9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 26 Jan 2017 14:53:04 -0800 Subject: [PATCH] Don't use private libc++ macros. The visibility macros just expand to the defaults, so this isn't needed anyway. Test: mm Bug: http://b/34740564 Change-Id: If0ba6b412554300823219405c1e801ceec747dd0 --- liblog/event_tag_map.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/liblog/event_tag_map.cpp b/liblog/event_tag_map.cpp index 115542233..c53ea2c1c 100644 --- a/liblog/event_tag_map.cpp +++ b/liblog/event_tag_map.cpp @@ -38,10 +38,9 @@ typedef std::experimental::string_view MapString; typedef std::pair TagFmt; -template <> struct _LIBCPP_TYPE_VIS_ONLY std::hash +template <> struct std::hash : public std::unary_function { - _LIBCPP_INLINE_VISIBILITY - size_t operator()(const TagFmt& __t) const _NOEXCEPT { + size_t operator()(const TagFmt& __t) const noexcept { // Tag is typically unique. Will cost us an extra 100ns for the // unordered_map lookup if we instead did a hash that combined // both of tag and fmt members, e.g.: