From: Otto Moerbeek Date: Tue, 9 Jun 2020 11:18:58 +0000 (+0200) Subject: Do not use using namespace std; it causes ambiguity if X-Git-Tag: dnsdist-1.5.0-rc3~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a46806b62d969d022ddfa48f87b42816a1f2273;p=thirdparty%2Fpdns.git Do not use using namespace std; it causes ambiguity if both std::string_view and boost::string_view are in scope --- diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index 16132d9874..ff1dbc2710 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -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;