From 428ea43f40790b84c59b0792fe2e8abccdf2f558 Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Mon, 11 Nov 2024 16:49:35 -0300 Subject: [PATCH] refactor(string_view_base): remove hash_value Since https://github.com/boostorg/core/commit/92f6cfb3ccf977b6a5c615ce174a9d94002b3b0d in Boost.Core, we have been getting "error: use of undeclared identifier 'hash_value'" because hash_value is not part of the interface of core::string_view. hash_value has been removed from core::string_view because it's redundant. Boost containers don't need it and it does not enable std containers. --- include/boost/url/grammar/string_view_base.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/boost/url/grammar/string_view_base.hpp b/include/boost/url/grammar/string_view_base.hpp index 9be943f3e..110092655 100644 --- a/include/boost/url/grammar/string_view_base.hpp +++ b/include/boost/url/grammar/string_view_base.hpp @@ -857,16 +857,6 @@ class string_view_base //-------------------------------------------- - /** Return the hash of this value - */ - friend - std::size_t - hash_value( - string_view_base const& s) noexcept - { - return hash_value(s.s_); - } - /** Format a string to an output stream */ BOOST_URL_DECL