]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
dokan: : build without "using namespace std"
authorKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 05:24:58 +0000 (13:24 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 13 Aug 2021 08:56:55 +0000 (16:56 +0800)
* 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/dokan/dbg.cc

index 1fb208f09172249a082afad8afa3bc49696c8572..6860ff35cd7810268856825543989d4b721438b1 100644 (file)
@@ -23,6 +23,7 @@
 #define check_flag(stream, val, flag) if (val & flag) { stream << "[" #flag "]"; }
 #define check_flag_eq(stream, val, flag) if (val == flag) { stream << "[" #flag "]"; }
 
+using namespace std;
 
 void print_credentials(ostringstream& Stream, PDOKAN_FILE_INFO DokanFileInfo)
 {