]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/crimson: trade operator<<() for fmt::format<>()
authorKefu Chai <tchaikov@gmail.com>
Thu, 15 Dec 2022 09:36:05 +0000 (17:36 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 16 Dec 2022 02:37:25 +0000 (10:37 +0800)
commit86be835fef0a4c46f379c26d4cf4d6cedff16bda
treec5d59888568bcfaf822b94e64ce181d0e700271a
parent5bb16452e9456ee0735fe824208f56946019fe63
test/crimson: trade operator<<() for fmt::format<>()

so we are able to format Payload using fmtlib v9. before fmtlib v9,
fmtlib is able to fall back to the operator<<() to format the the
types with the operator<<() defined. but after fmtlib v9, we need to
explicitly define them for accessing the specialized formatter.

now that we have specialized fmt::format<> for Payload, and the only
consumer of operator<<() is the fmtlib, we can safely drop the latter.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/test/crimson/test_messenger_thrash.cc