diff options
author | Kefu Chai <kchai@redhat.com> | 2021-08-11 06:00:00 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-08-13 06:23:37 +0200 |
commit | 15467a543343d4ebce1ceaba3e1e54745dbd9c27 (patch) | |
tree | 63c0082523e9e58bf0f9c2cc819a4d2ac2a71e12 /src/libcephfs.cc | |
parent | blk: build without "using namespace std" (diff) | |
download | ceph-15467a543343d4ebce1ceaba3e1e54745dbd9c27.tar.xz ceph-15467a543343d4ebce1ceaba3e1e54745dbd9c27.zip |
libcephfs: 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/libcephfs.cc')
-rw-r--r-- | src/libcephfs.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcephfs.cc b/src/libcephfs.cc index a379b7b6bf7..63af614bcef 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -37,6 +37,8 @@ #define DEFAULT_UMASK 002 +using namespace std; + static mode_t umask_cb(void *); namespace { // Set things up this way so we don't start up threads until mount and |