diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 13:43:14 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 13:43:30 +0200 |
commit | cb484be64de45ad6529952366273978502a17b6d (patch) | |
tree | 58314755228b0105571d7bffcdf99ea699846a29 /compat/intrusive-ptr.hpp | |
parent | 3534cd206bedef5ea75302d9abf879b15d1df89c (diff) |
don't include <compare> when not necessary
Diffstat (limited to 'compat/intrusive-ptr.hpp')
-rw-r--r-- | compat/intrusive-ptr.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compat/intrusive-ptr.hpp b/compat/intrusive-ptr.hpp index b5cf0d53..5f05777c 100644 --- a/compat/intrusive-ptr.hpp +++ b/compat/intrusive-ptr.hpp @@ -1,6 +1,5 @@ #pragma once #include "compat/assert.hpp" -#include <compare> namespace floormat::iptr { struct non_atomic_u32_tag{}; } @@ -201,8 +200,11 @@ public: template<typename TAG, typename TYPE> friend constexpr bool operator==(const basic_iptr<TAG, TYPE>& a, const basic_iptr<TAG, TYPE>& b) noexcept; +#if 0 + // todo move to .inl template<typename TAG, typename TYPE> friend constexpr std::strong_ordering operator<=>(const basic_iptr<TAG, TYPE>& a, const basic_iptr<TAG, TYPE>& b) noexcept; +#endif }; // ----- constructors ----- @@ -314,10 +316,12 @@ fm_template constexpr bool operator==(const fm_basic_iptr& a, const fm_basic_ipt return a._ptr == b._ptr; } +#if 0 fm_template constexpr std::strong_ordering operator<=>(const fm_basic_iptr& a, const fm_basic_iptr& b) noexcept { return a._ptr <=> b._ptr; } +#endif #undef fm_template #undef fm_basic_iptr |