Skip to content

Commit

Permalink
refactor(string_view_base): remove hash_value
Browse files Browse the repository at this point in the history
Since boostorg/core@92f6cfb 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.
  • Loading branch information
alandefreitas committed Nov 11, 2024
1 parent 91f81f8 commit 7b24e28
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/boost/url/grammar/string_view_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b24e28

Please sign in to comment.