From d91d39fa0f7f4f204d6fb7ff66b9817e498dbd61 Mon Sep 17 00:00:00 2001 From: Ansariel Hiller Date: Mon, 9 Sep 2024 12:02:34 +0200 Subject: Changes towards C++20 compatibility (#2520) --- indra/llcommon/llpointer.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'indra/llcommon/llpointer.h') 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 +bool operator!=(Type* lhs, const LLPointer& rhs) +{ + return (lhs != rhs.get()); +} + +template +bool operator==(Type* lhs, const LLPointer& rhs) +{ + return (lhs == rhs.get()); +} // boost hash adapter template -- cgit v1.2.3