summaryrefslogtreecommitdiffstats
path: root/src/test/rgw/test_log_backing.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-08-11 05:53:01 +0200
committerKefu Chai <kchai@redhat.com>2021-08-13 06:23:36 +0200
commit1d1e173876db1067d001e688b8eff0375908226f (patch)
tree3f7924142da0d53816a341ef482e935f7b7db4d1 /src/test/rgw/test_log_backing.cc
parenttest/erasure-code: build without "using namespace std" (diff)
downloadceph-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/rgw/test_log_backing.cc')
-rw-r--r--src/test/rgw/test_log_backing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rgw/test_log_backing.cc b/src/test/rgw/test_log_backing.cc
index c67debb9f59..6c9a1b9e3c0 100644
--- a/src/test/rgw/test_log_backing.cc
+++ b/src/test/rgw/test_log_backing.cc
@@ -189,7 +189,7 @@ TEST_F(LogBacking, TestFIFOEmpty)
}
TEST(CursorGen, RoundTrip) {
- const auto pcurs = "fded"sv;
+ const std::string_view pcurs = "fded";
{
auto gc = gencursor(0, pcurs);
ASSERT_EQ(pcurs, gc);