summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2026-01-05 11:09:43 -0500
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-01-05 19:34:44 +0200
commit112f9b9e226049ca1abaecfaa8a6d1b67506e140 (patch)
treebb85572dbd41ac6cf2964cbe84e24c1e3e03b0a7 /indra/llcommon
parent9d684bc9241cca4aae79d93886d0f95dcee26d65 (diff)
Remove unused boost::hash specialization from LLPointer and update std::hash specialization to use std::hash internally
Signed-off-by: Rye <rye@alchemyviewer.org>
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llpointer.h18
1 files 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 <boost/functional/hash.hpp>
+#include <functional>
#include <string_view>
#include <utility> // std::swap()
@@ -293,26 +293,14 @@ bool operator==(Type0* lhs, const LLPointer<Type1>& rhs)
return (lhs == rhs.get());
}
-// boost hash adapter
-template <class Type>
-struct boost::hash<LLPointer<Type>>
-{
- typedef LLPointer<Type> 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<class Type> struct hash<LLPointer<Type>>
{
std::size_t operator()(LLPointer<Type> const& s) const noexcept
{
- return boost::hash<LLPointer<Type>>()(s);
+ return std::hash<Type*>()(s.get());
}
};
}