From: rkhudov Date: Wed, 28 Feb 2024 17:27:39 +0000 (+0000) Subject: src/test/common/test_hobject: remove constexpr X-Git-Tag: v20.0.0~2501^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F55817%2Fhead;p=ceph.git src/test/common/test_hobject: remove constexpr Signed-off-by: rkhudov --- diff --git a/src/test/common/test_hobject.cc b/src/test/common/test_hobject.cc index 19945754004..d9600c83e1a 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)