]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src: migrate to fmt::formattable for format support
authorKefu Chai <tchaikov@gmail.com>
Wed, 26 Mar 2025 03:43:43 +0000 (11:43 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 29 Mar 2025 13:18:01 +0000 (21:18 +0800)
commit0dc157830ca1a87737527487c4526d18970878a6
tree48dd8514ae37d13282c7b0aa7a4d00fd6b05cb1f
parentbb4d5128efc236e934f53d1f5652845f99e8e065
src: migrate to fmt::formattable for format support

Replace custom has_formatter concept with fmtlib's fmt::formattable

- Deprecate usage of fmt::has_formatter
- Resolve compiler warnings with recent fmtlib versions

The custom concept of has_formatter is no longer necessary with
recent updates to the fmtlib library, as fmt::formattable was introduced
in fmtlib v11.0.0. By switching to fmt::formattable, we simplify our
code and stop using the deprecated `fmt::has_formatter` template.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/bitset_set.h
src/common/fmt_common.h
src/common/interval_map.h
src/common/mini_flat_map.h
src/crimson/osd/scrub/scrub_machine.h
src/include/interval_set.h
src/osd/scrubber/scrub_machine.h