]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not use using namespace std; it causes ambiguity if 9213/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 9 Jun 2020 11:18:58 +0000 (13:18 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 9 Jun 2020 11:18:58 +0000 (13:18 +0200)
both std::string_view and boost::string_view are in scope

pdns/dnsdistdist/doh.cc

index 16132d9874a666bdcc1dd3cbcd0bbe3e70ab3a93..ff1dbc27103054efc1d583d4a1e40849a9787313 100644 (file)
@@ -31,8 +31,6 @@
 #include "threadname.hh"
 #include "views.hh"
 
-using namespace std;
-
 /* So, how does this work. We use h2o for our http2 and TLS needs.
    If the operator has configured multiple IP addresses to listen on,
    we launch multiple h2o listener threads. We can hook in to multiple
@@ -837,7 +835,7 @@ try
   }
   return 0;
 }
-catch(const exception& e)
+ catch(const std::exception& e)
 {
   errlog("DOH Handler function failed with error %s", e.what());
   return 0;