]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_fuse: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 07:55:39 +0000 (15:55 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 04:23:38 +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/ceph_fuse.cc

index b7f8a4d4b90197879f6972e2cf9fa32d9d7816f5..01858fccbe4cd2ab743c24ac0e1a67651e2bdfbe 100644 (file)
@@ -47,6 +47,8 @@
 
 #define dout_context g_ceph_context
 
+using namespace std;
+
 ceph::async::io_context_pool icp;
 
 static void fuse_usage()