summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpointer.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-09 17:21:52 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-09 17:21:52 -0400
commit9180c4e7a9b92b2a69a95533acc7bc1a1a41f415 (patch)
tree958701fe8f07defcc1d7071b481318ab662313b7 /indra/llcommon/llpointer.h
parent0c451a60b7fe859f9deeaefb6360e96ec9af630f (diff)
parentb7c82a8e7a5efcf56cf8c60ecc4922cf2942b70e (diff)
Merge branch 'develop' into release/luau-scripting
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>