From 0a62c979a7cc697e62db57515cc5b51cdefb96bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 30 Sep 2024 21:06:01 +0200 Subject: [PATCH] Use boost::hash instead of boost::hash_value (properly tests #290 use case) --- test/string_view_compat_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/string_view_compat_test.cpp b/test/string_view_compat_test.cpp index 452e6e44..aac75024 100644 --- a/test/string_view_compat_test.cpp +++ b/test/string_view_compat_test.cpp @@ -281,9 +281,11 @@ void hash_test() const boost::container::string s1 = "0125925123"; const boost::container::string s2 = "25925123"; + typedef boost::hash shash_t; + typedef boost::hash svhash_t; - BOOST_TEST(boost::hash_value(s1) == boost::hash_value(StringViewType(s1))); - BOOST_TEST(boost::hash_value(s2) == boost::hash_value(StringViewType(s2))); + BOOST_TEST(shash_t()(s1) == svhash_t()(StringViewType(s1))); + BOOST_TEST(shash_t()(s2) == svhash_t()(StringViewType(s2))); } #else