From e3b8c4a51dcabdbbc7772f6faaa3cc27e2ee2503 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Thu, 28 Mar 2019 20:48:50 -0400 Subject: [PATCH] messages: Update MOSDPGLog.h to work without using namespace Signed-off-by: Adam C. Emerson --- src/messages/MOSDPGLog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messages/MOSDPGLog.h b/src/messages/MOSDPGLog.h index a9a7d2446bd..e391183a268 100644 --- a/src/messages/MOSDPGLog.h +++ b/src/messages/MOSDPGLog.h @@ -85,7 +85,7 @@ private: public: std::string_view get_type_name() const override { return "PGlog"; } - void inner_print(ostream& out) const override { + void inner_print(std::ostream& out) const override { // NOTE: log is not const, but operator<< doesn't touch fields // swapped out by OSD code. out << "log " << log @@ -109,6 +109,7 @@ public: encode(from, payload); } void decode_payload() override { + using ceph::decode; auto p = payload.cbegin(); decode(epoch, p); decode(info, p); -- 2.39.5