]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mount.ceph: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 10:41:28 +0000 (18:41 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 04:23:39 +0000 (12:23 +0800)
* 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>
src/mount/conf.cc

index 104969eefbf39830c7c58f379b44cafd2ef71e10..2eae2b04c168006d818a37dabd22e3ae0737ad1d 100644 (file)
@@ -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,