diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 21:39:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 21:39:37 +0200 |
commit | c71dc6be5e506fc316ac6557d6956aa69988e44f (patch) | |
tree | e9216317516d07448ec2dc07fd1e0af0498c9022 /compat | |
parent | 3f503fd32e456926f271b7d4bc485c91adc7b716 (diff) |
f
Diffstat (limited to 'compat')
-rw-r--r-- | compat/borrowed-ptr-fwd.hpp | 5 |
1 files 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<detail_borrowed_ptr::DerivedFrom<T> Y> bptr(bptr<Y>&&) noexcept; template<detail_borrowed_ptr::DerivedFrom<T> Y> bptr& operator=(bptr<Y>&&) noexcept; - friend bool operator==<T>(const bptr<T>& a, const bptr<T>& b) noexcept; - explicit operator bool() const noexcept; void reset() noexcept; template<bool MaybeEmpty = true> 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==<T>(const bptr<T>& a, const bptr<T>& b) noexcept; + template<typename U> friend class bptr; template<typename U, typename Tʹ> friend bptr<U> static_pointer_cast(const bptr<Tʹ>& p) noexcept; }; |