summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpointer.h
diff options
context:
space:
mode:
authorAnsariel Hiller <Ansariel@users.noreply.github.com>2024-09-09 12:02:34 +0200
committerGitHub <noreply@github.com>2024-09-09 13:02:34 +0300
commitd91d39fa0f7f4f204d6fb7ff66b9817e498dbd61 (patch)
tree467806f61646cd62b195143cb89f384a472e34bf /indra/llcommon/llpointer.h
parent2f692fbac36117e1b3c5f2ec214fd188c7e73da7 (diff)
Changes towards C++20 compatibility (#2520)
Diffstat (limited to 'indra/llcommon/llpointer.h')
-rw-r--r--indra/llcommon/llpointer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llcommon/llpointer.h b/indra/llcommon/llpointer.h
index 6edff9fa5e..048547e4cc 100644
--- a/indra/llcommon/llpointer.h
+++ b/indra/llcommon/llpointer.h
@@ -418,6 +418,17 @@ private:
bool mStayUnique;
};
+template<typename Type>
+bool operator!=(Type* lhs, const LLPointer<Type>& rhs)
+{
+ return (lhs != rhs.get());
+}
+
+template<typename Type>
+bool operator==(Type* lhs, const LLPointer<Type>& rhs)
+{
+ return (lhs == rhs.get());
+}
// boost hash adapter
template <class Type>