From cb484be64de45ad6529952366273978502a17b6d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 May 2024 13:43:14 +0200 Subject: don't include when not necessary --- compat/intrusive-ptr.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compat/intrusive-ptr.hpp') 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 namespace floormat::iptr { struct non_atomic_u32_tag{}; } @@ -201,8 +200,11 @@ public: template friend constexpr bool operator==(const basic_iptr& a, const basic_iptr& b) noexcept; +#if 0 + // todo move to .inl template friend constexpr std::strong_ordering operator<=>(const basic_iptr& a, const basic_iptr& 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 -- cgit v1.2.3