diff options
author | Kefu Chai <kchai@redhat.com> | 2021-08-11 05:46:14 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-08-13 06:21:39 +0200 |
commit | 9b29dc55a3adbd71d488901aed4d5f7f3bc7d558 (patch) | |
tree | 098fef34c881ccad8f77cdf1bdcec6e712bc7d88 /src/mds/LogEvent.h | |
parent | test/librbd: build without "using namespace std" (diff) | |
download | ceph-9b29dc55a3adbd71d488901aed4d5f7f3bc7d558.tar.xz ceph-9b29dc55a3adbd71d488901aed4d5f7f3bc7d558.zip |
mds: build without "using namespace std"
* add "std::" prefix in headers
* add "using" declarations in .cc files.
so we don't rely on "using namespace std" in one or more included
headers.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mds/LogEvent.h')
-rw-r--r-- | src/mds/LogEvent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds/LogEvent.h b/src/mds/LogEvent.h index 4e368c97b5e..317b6579fc1 100644 --- a/src/mds/LogEvent.h +++ b/src/mds/LogEvent.h @@ -89,7 +89,7 @@ public: ENCODE_FINISH(bl); } - virtual void print(ostream& out) const { + virtual void print(std::ostream& out) const { out << "event(" << _type << ")"; } @@ -125,7 +125,7 @@ private: LogSegment *_segment = nullptr; }; -inline ostream& operator<<(ostream& out, const LogEvent &le) { +inline std::ostream& operator<<(std::ostream& out, const LogEvent &le) { le.print(out); return out; } |