From f6b157e946b7cdfc32481707fb655fccd19753a6 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 11 Aug 2021 18:22:40 +0800 Subject: [PATCH] tools/erasure-code: 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 --- src/tools/erasure-code/ceph-erasure-code-tool.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/erasure-code/ceph-erasure-code-tool.cc b/src/tools/erasure-code/ceph-erasure-code-tool.cc index 6c99abf46177b..9c1a459c533ac 100644 --- a/src/tools/erasure-code/ceph-erasure-code-tool.cc +++ b/src/tools/erasure-code/ceph-erasure-code-tool.cc @@ -19,6 +19,8 @@ #include +using namespace std; + std::vector display_params = { "chunk_count", "data_chunk_count", "coding_chunk_count" }; -- 2.39.5