From 112f9b9e226049ca1abaecfaa8a6d1b67506e140 Mon Sep 17 00:00:00 2001 From: Rye Date: Mon, 5 Jan 2026 11:09:43 -0500 Subject: Remove unused boost::hash specialization from LLPointer and update std::hash specialization to use std::hash internally Signed-off-by: Rye --- indra/llcommon/llpointer.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/indra/llcommon/llpointer.h b/indra/llcommon/llpointer.h index 77c02fab11..d2dcf530e5 100644 --- a/indra/llcommon/llpointer.h +++ b/indra/llcommon/llpointer.h @@ -26,7 +26,7 @@ #ifndef LLPOINTER_H #define LLPOINTER_H -#include +#include #include #include // std::swap() @@ -293,26 +293,14 @@ bool operator==(Type0* lhs, const LLPointer& rhs) return (lhs == rhs.get()); } -// boost hash adapter -template -struct boost::hash> -{ - typedef LLPointer argument_type; - typedef std::size_t result_type; - result_type operator()(argument_type const& s) const - { - return (std::size_t) s.get(); - } -}; - -// Adapt boost hash to std hash +// Specialize for std::hash namespace std { template struct hash> { std::size_t operator()(LLPointer const& s) const noexcept { - return boost::hash>()(s); + return std::hash()(s.get()); } }; } -- cgit v1.3