From 2739ec2d426ed96c42124c93a702a388240dbce8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Sat, 2 Sep 2023 20:30:01 +0200 Subject: [PATCH] fix: `zero` now compares using `strong_ordering` --- src/core/include/mp-units/bits/external/zero.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/bits/external/zero.h b/src/core/include/mp-units/bits/external/zero.h index 3d996203b..220d18e5b 100644 --- a/src/core/include/mp-units/bits/external/zero.h +++ b/src/core/include/mp-units/bits/external/zero.h @@ -60,7 +60,7 @@ struct zero_t { friend consteval zero_t operator%(zero_t, zero_t) = delete; [[nodiscard]] consteval bool operator==(zero_t) const { return true; } - [[nodiscard]] consteval auto operator<=>(zero_t) const { return std::partial_ordering::equivalent; } + [[nodiscard]] consteval auto operator<=>(zero_t) const { return std::strong_ordering::equal; } }; inline constexpr zero_t zero;