]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 03:49:52 +0000 (11:49 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 04:23:36 +0000 (12:23 +0800)
commit2bf4b7e4b0ad5bcab52eaabedb6439d4a86af37b
tree5e47750ee93c2f235ae8ad655eb5801eb2299c3a
parentc63ecb602e5916d5e0beed137787fdfc67707f15
mon: 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>
15 files changed:
src/mon/ConnectionTracker.h
src/mon/ElectionLogic.h
src/mon/Elector.h
src/mon/KVMonitor.cc
src/mon/KVMonitor.h
src/mon/LogMonitor.cc
src/mon/MDSMonitor.h
src/mon/MonCap.h
src/mon/MonClient.h
src/mon/MonMap.cc
src/mon/MonMap.h
src/mon/Monitor.h
src/mon/MonmapMonitor.h
src/mon/OSDMonitor.h
src/mon/Session.h