]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_dedup: remove 'using namespace std' 63145/head
authorKefu Chai <tchaikov@gmail.com>
Wed, 7 May 2025 01:09:00 +0000 (09:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 9 May 2025 14:20:56 +0000 (22:20 +0800)
commit9781e36073e3b3b7e6fb338677c22248f6ed3d20
treebd8adb044d40ed452d4840367ecc7338fed09783
parent62211303509a46cfd88b2c9757941429fc4b5497
tools/ceph_dedup: remove 'using namespace std'

Remove 'using namespace std' from common.h to maintain consistent coding
practices. Although common.h is only used by ceph_dedup implementation,
keeping namespace declarations out of header files prevents potential
name conflicts and follows best practices for C++ code organization.

This change improves code clarity and reduces the risk of symbol collisions
when standard library elements are used alongside custom
implementations.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/tools/ceph_dedup/ceph_dedup_daemon.cc
src/tools/ceph_dedup/ceph_dedup_tool.cc
src/tools/ceph_dedup/common.cc
src/tools/ceph_dedup/common.h