From 573fd9804ced51fd825e745857c92b8f80ddcaa3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 11 Aug 2021 12:02:57 +0800 Subject: [PATCH] crush: 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/crush/CrushCompiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crush/CrushCompiler.cc b/src/crush/CrushCompiler.cc index a936684f68e..5e51aad8dba 100644 --- a/src/crush/CrushCompiler.cc +++ b/src/crush/CrushCompiler.cc @@ -793,7 +793,7 @@ int CrushCompiler::parse_rule(iter_t const& i) for (unsigned p = start + 3; p < i->children.size()-1; ++p) { string tag = string_node(i->children[p]); if (tag == "min_size" || tag == "max_size") { - cerr << "WARNING: " << tag << " is no longer supported, ignoring" << std::endl; + std::cerr << "WARNING: " << tag << " is no longer supported, ignoring" << std::endl; ++p; continue; } -- 2.39.5