From 0032e8313df7ea9201032c46377f9db24304890f Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Mon, 9 Nov 2020 21:12:46 -0500 Subject: Bug 1466909 - Use AddLvalueReference for UniquePtr's operator*(). This is required for UniquePtr to accept , which is required for PseudoHandle = mozilla::UniquePtr; in turn for mozilla::SegmentedVector> uniquePtrArena_; Tag #1679 --- mfbt/UniquePtr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mfbt/UniquePtr.h') diff --git a/mfbt/UniquePtr.h b/mfbt/UniquePtr.h index 7e1035bc6..79d76cf02 100644 --- a/mfbt/UniquePtr.h +++ b/mfbt/UniquePtr.h @@ -314,7 +314,7 @@ public: return *this; } - T& operator*() const { return *get(); } + typename AddLvalueReference::Type operator*() const { return *get(); } Pointer operator->() const { MOZ_ASSERT(get(), "dereferencing a UniquePtr containing nullptr"); -- cgit v1.2.3