From 715ea617ba61aaf51486249d5e57c9076b847c6c Mon Sep 17 00:00:00 2001 From: rkhudov Date: Wed, 28 Feb 2024 17:27:39 +0000 Subject: [PATCH] src/test/common/test_hobject: remove constexpr Signed-off-by: rkhudov --- src/test/common/test_hobject.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/common/test_hobject.cc b/src/test/common/test_hobject.cc index 19945754004e7..d9600c83e1a7b 100644 --- a/src/test/common/test_hobject.cc +++ b/src/test/common/test_hobject.cc @@ -98,7 +98,7 @@ struct test_hobject_fmt_t : public hobject_t { return snap == 0 && hash == 0 && !max && pool == INT64_MIN; } - constexpr auto operator<=>(const test_hobject_fmt_t& rhs) const noexcept + auto operator<=>(const test_hobject_fmt_t& rhs) const noexcept { auto cmp = is_max() <=> rhs.is_max(); if (cmp != 0) @@ -122,7 +122,7 @@ struct test_hobject_fmt_t : public hobject_t { return cmp; return snap <=> rhs.snap; } - constexpr bool operator==(const hobject_t& rhs) const noexcept + bool operator==(const hobject_t& rhs) const noexcept { return operator<=>(rhs) == 0; } @@ -201,7 +201,7 @@ namespace fmt { template <> struct formatter { - constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); } + auto parse(format_parse_context& ctx) { return ctx.begin(); } template auto format(const test_hobject_fmt_t& ho, FormatContext& ctx) -- 2.39.5