From: Kefu Chai Date: Wed, 11 Aug 2021 10:22:40 +0000 (+0800) Subject: tools/erasure-code: build without "using namespace std" X-Git-Tag: v17.1.0~1121^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f6b157e946b7cdfc32481707fb655fccd19753a6;p=ceph.git 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 --- 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" };