summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/borrowed-ptr.hpp5
-rw-r--r--compat/borrowed-ptr.inl10
2 files changed, 0 insertions, 15 deletions
diff --git a/compat/borrowed-ptr.hpp b/compat/borrowed-ptr.hpp
index 6a4e79f1..76039926 100644
--- a/compat/borrowed-ptr.hpp
+++ b/compat/borrowed-ptr.hpp
@@ -1,6 +1,5 @@
#pragma once
#include "borrowed-ptr-fwd.hpp"
-#include <compare>
#define FM_BPTR_DEBUG
#define FM_NO_WEAK_BPTR
@@ -113,10 +112,6 @@ public:
bool operator==(const bptr<T>& other) const noexcept requires (!std::is_const_v<T>);
bool operator==(const std::nullptr_t& other) const noexcept;
- std::strong_ordering operator<=>(const bptr<const T>& other) const noexcept;
- std::strong_ordering operator<=>(const bptr<T>& other) const noexcept requires (!std::is_const_v<T>);
- std::strong_ordering operator<=>(const std::nullptr_t&) const noexcept;
-
template<typename U> friend class bptr;
template<typename U> friend class weak_bptr;
diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl
index 2ae1226b..d8c561a5 100644
--- a/compat/borrowed-ptr.inl
+++ b/compat/borrowed-ptr.inl
@@ -148,16 +148,6 @@ template<typename T> bool bptr<T>::operator==(const bptr<T>& other) const noexce
template<typename T> bool bptr<T>::operator==(const std::nullptr_t&) const noexcept { return !blk || !blk->_ptr; }
-template<typename T>
-std::strong_ordering bptr<T>::operator<=>(const bptr<const T>& other) const noexcept
-{ return get() <=> other.get(); }
-
-template<typename T> std::strong_ordering bptr<T>::operator<=>(const bptr<T>& other) const noexcept requires (!std::is_const_v<T>)
-{ return get() <=> other.get(); }
-
-template<typename T> std::strong_ordering bptr<T>::operator<=>(const std::nullptr_t&) const noexcept
-{ return get() <=> (T*)nullptr; }
-
template<typename T> void bptr<T>::swap(bptr& other) noexcept { floormat::swap(blk, other.blk); }
template<typename T>