]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/rbd_nbd: build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Wed, 11 Aug 2021 10:42:52 +0000 (18:42 +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/rbd_nbd/rbd-nbd.cc

index f7231f223fc49d271ab72fb19ad8d3033022b6ae..28686842873f75bb4613db63abdee513932f899a 100644 (file)
@@ -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;