]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/LogEntry: specialize fmt::formatter<LogEntry>
authorKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 03:00:20 +0000 (11:00 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 27 Aug 2022 15:59:24 +0000 (23:59 +0800)
commit2901943618f071060f72d69cf632a4097e439df4
tree483422a119c5d4dbde7de8be0d458161f327ba80
parent6e223a6802152fc689ecdbf38fb4a410123844c7
common/LogEntry: specialize fmt::formatter<LogEntry>

so we can use the formatter defined for `LogEntry` in fmtlib v9.
in this new version of fmtlib, it is required to define a specialization
for the formatted type even when it comes to the types with an override of
operator<<(). since we already have an override for `LogEntry`, let's define
the specialization for `fmt::formatter<LogEntry>`.

this change should address the FTBFS when building with fmtlib v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/common/LogEntry.h