From: Kefu Chai Date: Wed, 11 Aug 2021 10:41:28 +0000 (+0800) Subject: mount.ceph: build without "using namespace std" X-Git-Tag: v17.1.0~1121^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0b35ce68e42e5206a01669660835c36de6d6e0e8;p=ceph.git mount.ceph: 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 --- diff --git a/src/mount/conf.cc b/src/mount/conf.cc index 104969eefbf3..2eae2b04c168 100644 --- a/src/mount/conf.cc +++ b/src/mount/conf.cc @@ -17,6 +17,7 @@ #include "mount.ceph.h" +using namespace std; extern "C" void mount_ceph_get_config_info(const char *config_file, const char *name,