From: Kefu Chai Date: Wed, 11 Aug 2021 10:42:52 +0000 (+0800) Subject: tools/rbd_nbd: build without "using namespace std" X-Git-Tag: v17.1.0~1121^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2aa30306c1587bac9c2ebe29b9b5b7beed432ea;p=ceph-ci.git tools/rbd_nbd: 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/rbd_nbd/rbd-nbd.cc b/src/tools/rbd_nbd/rbd-nbd.cc index f7231f223fc..28686842873 100644 --- a/src/tools/rbd_nbd/rbd-nbd.cc +++ b/src/tools/rbd_nbd/rbd-nbd.cc @@ -80,6 +80,7 @@ #undef dout_prefix #define dout_prefix *_dout << "rbd-nbd: " +using namespace std; namespace fs = std::filesystem; using boost::endian::big_to_native;