diff options
author | Kefu Chai <kchai@redhat.com> | 2021-08-11 05:53:01 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-08-13 06:23:36 +0200 |
commit | 1d1e173876db1067d001e688b8eff0375908226f (patch) | |
tree | 3f7924142da0d53816a341ef482e935f7b7db4d1 /src/test/librados/test_common.cc | |
parent | test/erasure-code: build without "using namespace std" (diff) | |
download | ceph-1d1e173876db1067d001e688b8eff0375908226f.tar.xz ceph-1d1e173876db1067d001e688b8eff0375908226f.zip |
test: : 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/test/librados/test_common.cc')
-rw-r--r-- | src/test/librados/test_common.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/librados/test_common.cc b/src/test/librados/test_common.cc index c17b710d17c..647a9ff4858 100644 --- a/src/test/librados/test_common.cc +++ b/src/test/librados/test_common.cc @@ -6,6 +6,8 @@ #include "json_spirit/json_spirit.h" #include "test_common.h" +using namespace std; + namespace { using namespace ceph; |