From c71dc6be5e506fc316ac6557d6956aa69988e44f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 5 May 2024 21:39:37 +0200 Subject: f --- compat/borrowed-ptr-fwd.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compat/borrowed-ptr-fwd.hpp b/compat/borrowed-ptr-fwd.hpp index 28ea3c55..8f4fafbe 100644 --- a/compat/borrowed-ptr-fwd.hpp +++ b/compat/borrowed-ptr-fwd.hpp @@ -54,8 +54,6 @@ public: template Y> bptr(bptr&&) noexcept; template Y> bptr& operator=(bptr&&) noexcept; - friend bool operator==(const bptr& a, const bptr& b) noexcept; - explicit operator bool() const noexcept; void reset() noexcept; template void destroy() noexcept; void swap(bptr& other) noexcept; @@ -65,6 +63,9 @@ public: T* operator->() const noexcept; T& operator*() const noexcept; + explicit operator bool() const noexcept; + friend bool operator==(const bptr& a, const bptr& b) noexcept; + template friend class bptr; template friend bptr static_pointer_cast(const bptr& p) noexcept; }; -- cgit v1.2.3