Skip to content

Commit

Permalink
fix: zero now compares using strong_ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Sep 2, 2023
1 parent f86d8a5 commit 2739ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/bits/external/zero.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2739ec2

Please sign in to comment.