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_stub | |
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_stub')
-rw-r--r-- | src/test/librados_test_stub/LibradosTestStub.cc | 2 | ||||
-rw-r--r-- | src/test/librados_test_stub/TestIoCtxImpl.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index c567147e7a2..b5ceb53eae9 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -31,6 +31,8 @@ #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rados +using namespace std; + namespace librados { MockTestMemIoCtxImpl &get_mock_io_ctx(IoCtx &ioctx) { diff --git a/src/test/librados_test_stub/TestIoCtxImpl.cc b/src/test/librados_test_stub/TestIoCtxImpl.cc index 73bc8d4a885..0b106e1d122 100644 --- a/src/test/librados_test_stub/TestIoCtxImpl.cc +++ b/src/test/librados_test_stub/TestIoCtxImpl.cc @@ -13,6 +13,8 @@ #include <functional> #include <errno.h> +using namespace std; + namespace librados { TestIoCtxImpl::TestIoCtxImpl() : m_client(NULL) { |