From a7222fd65cd9ee518bc8a90cc13db4d5184f231e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rados=C5=82aw=20Zarzy=C5=84ski?= Date: Thu, 28 Sep 2023 18:23:47 +0200 Subject: [PATCH] osd: make ECCommon compatible with libfmt MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For the crimson's sake. Signed-off-by: Radosław Zarzyński --- src/osd/ECCommon.h | 6 ++++++ src/osd/ECMsgTypes.h | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/osd/ECCommon.h b/src/osd/ECCommon.h index 2ef088f5bf1..f074a79abaf 100644 --- a/src/osd/ECCommon.h +++ b/src/osd/ECCommon.h @@ -16,6 +16,7 @@ #include #include +#include #include "common/sharedptr_registry.hpp" #include "erasure-code/ErasureCodeInterface.h" @@ -689,3 +690,8 @@ std::ostream &operator<<(std::ostream &lhs, std::ostream &operator<<(std::ostream &lhs, const ECCommon::RMWPipeline::Op &rhs); +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; diff --git a/src/osd/ECMsgTypes.h b/src/osd/ECMsgTypes.h index bf10704125c..2d0bc5c1221 100644 --- a/src/osd/ECMsgTypes.h +++ b/src/osd/ECMsgTypes.h @@ -15,6 +15,8 @@ #ifndef ECBMSGTYPES_H #define ECBMSGTYPES_H +#include + #include "osd_types.h" #include "include/buffer.h" #include "os/ObjectStore.h" @@ -137,4 +139,9 @@ std::ostream &operator<<( std::ostream &operator<<( std::ostream &lhs, const ECSubReadReply &rhs); +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; +template <> struct fmt::formatter : fmt::ostream_formatter {}; + #endif -- 2.39.5