From 917ac6a88ade4b831f6c27703200f8f3a2e35fe4 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 16 Oct 2021 16:22:33 +0300 Subject: [PATCH] Remove BOOST_HASH_CHAR_TRAITS --- include/boost/container_hash/hash.hpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/include/boost/container_hash/hash.hpp b/include/boost/container_hash/hash.hpp index 3f62f51..7f11c4b 100644 --- a/include/boost/container_hash/hash.hpp +++ b/include/boost/container_hash/hash.hpp @@ -47,13 +47,6 @@ #endif -#if BOOST_WORKAROUND(__GNUC__, < 3) \ - && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) -#define BOOST_HASH_CHAR_TRAITS string_char_traits -#else -#define BOOST_HASH_CHAR_TRAITS char_traits -#endif - #if defined(_MSC_VER) # define BOOST_FUNCTIONAL_HASH_ROTL32(x, r) _rotl(x,r) #else @@ -228,12 +221,12 @@ namespace boost template std::size_t hash_value( - std::basic_string, A> const&); + std::basic_string, A> const&); #if BOOST_HASH_HAS_STRING_VIEW template std::size_t hash_value( - std::basic_string_view > const&); + std::basic_string_view > const&); #endif template @@ -485,7 +478,7 @@ namespace boost template inline std::size_t hash_value( - std::basic_string, A> const& v) + std::basic_string, A> const& v) { return hash_range(v.begin(), v.end()); } @@ -493,7 +486,7 @@ namespace boost #if BOOST_HASH_HAS_STRING_VIEW template inline std::size_t hash_value( - std::basic_string_view > const& v) + std::basic_string_view > const& v) { return hash_range(v.begin(), v.end()); } @@ -699,7 +692,6 @@ namespace boost }; } -#undef BOOST_HASH_CHAR_TRAITS #undef BOOST_FUNCTIONAL_HASH_ROTL32 #if defined(BOOST_MSVC)