]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/erasure-code: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 10:22:40 +0000 (18:22 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 04:23:39 +0000 (12:23 +0800)
* 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>
src/tools/erasure-code/ceph-erasure-code-tool.cc

index 6c99abf46177b545bb9ffb0b8d0e9d7f4d3908c2..9c1a459c533acb814ad300fbeaaea5f2ae37d4d9 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <boost/algorithm/string.hpp>
 
+using namespace std;
+
 std::vector<std::string> display_params = {
   "chunk_count", "data_chunk_count", "coding_chunk_count"
 };