Skip to content

Commit 0389bfe

Browse files
authored
Merge pull request ceph#55817 from rkhudov/src-test-common-test_hobject-remove-constexpr
src/test/common/test_hobject: remove constexpr Reviewed-by: Matan Breizman <[email protected]> Reviewed-by: Ronen Friedman <[email protected]>
2 parents 4fa6af2 + 715ea61 commit 0389bfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/common/test_hobject.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct test_hobject_fmt_t : public hobject_t {
9898
return snap == 0 && hash == 0 && !max && pool == INT64_MIN;
9999
}
100100

101-
constexpr auto operator<=>(const test_hobject_fmt_t& rhs) const noexcept
101+
auto operator<=>(const test_hobject_fmt_t& rhs) const noexcept
102102
{
103103
auto cmp = is_max() <=> rhs.is_max();
104104
if (cmp != 0)
@@ -122,7 +122,7 @@ struct test_hobject_fmt_t : public hobject_t {
122122
return cmp;
123123
return snap <=> rhs.snap;
124124
}
125-
constexpr bool operator==(const hobject_t& rhs) const noexcept
125+
bool operator==(const hobject_t& rhs) const noexcept
126126
{
127127
return operator<=>(rhs) == 0;
128128
}
@@ -201,7 +201,7 @@ namespace fmt {
201201
template <>
202202
struct formatter<test_hobject_fmt_t> {
203203

204-
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
204+
auto parse(format_parse_context& ctx) { return ctx.begin(); }
205205

206206
template <typename FormatContext>
207207
auto format(const test_hobject_fmt_t& ho, FormatContext& ctx)

0 commit comments

Comments
 (0)