From: Adam C. Emerson Date: Fri, 29 Mar 2019 00:50:39 +0000 (-0400) Subject: messages: Update MMonGetVersion.h to work without using namespace X-Git-Tag: v15.0.0~19^2~79 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e6693d5e7c481a0831e3809ce307e237807aa66a;p=ceph.git messages: Update MMonGetVersion.h to work without using namespace Signed-off-by: Adam C. Emerson --- diff --git a/src/messages/MMonGetVersion.h b/src/messages/MMonGetVersion.h index 84a88d26d6088..8768f47156bee 100644 --- a/src/messages/MMonGetVersion.h +++ b/src/messages/MMonGetVersion.h @@ -35,7 +35,7 @@ public: return "mon_get_version"; } - void print(ostream& o) const override { + void print(std::ostream& o) const override { o << "mon_get_version(what=" << what << " handle=" << handle << ")"; } @@ -47,12 +47,13 @@ public: void decode_payload() override { auto p = payload.cbegin(); + using ceph::decode; decode(handle, p); decode(what, p); } ceph_tid_t handle = 0; - string what; + std::string what; private: ~MMonGetVersion() override {}