]> git-server-git.apps.pok.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)
committerRonen Friedman <rfriedma@redhat.com>
Thu, 29 Jun 2023 11:59:21 +0000 (06:59 -0500)
commit1ec5d6a69bb5ec5840b5b60b97b39cd6b595ecd9
tree91bd06967b88709ffb3c4daf71eb5da43301d93d
parent7c6bfc406ffaed142b6c1f9b5d027ef54cf3e3fb
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>
(cherry picked from commit 2901943618f071060f72d69cf632a4097e439df4)
src/common/LogEntry.h