Skip to content

Commit 6021129

Browse files
committed
common/hobject: make hobject_t formatter methods const
Signed-off-by: Samuel Just <[email protected]>
1 parent 1b7e3c4 commit 6021129

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/hobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ struct formatter<hobject_t> {
398398
return ctx.out();
399399
}
400400

401-
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
401+
constexpr auto parse(format_parse_context& ctx) const { return ctx.begin(); }
402402

403403
template <typename FormatContext>
404-
auto format(const hobject_t& ho, FormatContext& ctx)
404+
auto format(const hobject_t& ho, FormatContext& ctx) const
405405
{
406406
if (ho == hobject_t{}) {
407407
return fmt::format_to(ctx.out(), "MIN");

0 commit comments

Comments
 (0)