From: Otto Moerbeek Date: Mon, 9 Nov 2020 13:46:46 +0000 (+0100) Subject: Unscoped tie should come from boost for now X-Git-Tag: dnsdist-1.6.0-alpha0~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e998d966a5b98ce1ca5a8bb862ff3c7d9a7df4c;p=thirdparty%2Fpdns.git Unscoped tie should come from boost for now --- diff --git a/pdns/comfun.cc b/pdns/comfun.cc index 3884cdb8a0..aa854a6c70 100644 --- a/pdns/comfun.cc +++ b/pdns/comfun.cc @@ -27,6 +27,7 @@ #include #include #include +#include #include "inflighter.cc" //#include "malloctrace.hh" StatBag S; @@ -62,7 +63,7 @@ struct SendReceive typedef int Identifier; typedef DNSResult Answer; // ip int d_socket; - deque d_idqueue; + std::deque d_idqueue; SendReceive(map& res) : d_res(res) { @@ -191,7 +192,7 @@ struct SendReceiveRes typedef int Identifier; typedef RESResult Answer; // ip int d_socket; - deque d_idqueue; + std::deque d_idqueue; map>& d_out; SendReceiveRes(const ComboAddress& remote, map>& out) : d_out(out) { diff --git a/pdns/namespaces.hh b/pdns/namespaces.hh index 4cdf8f7f82..5a6c6fc9b7 100644 --- a/pdns/namespaces.hh +++ b/pdns/namespaces.hh @@ -32,9 +32,10 @@ #include // We have a few paces where boost::tuple is used, and other places where an unscoped tuple is used -// use the boost one for now. We might want to switch to std::tuple one day. +// prefer the boost one for now. We might want to switch to std::tuple one day. Same for tie. using boost::make_tuple; using boost::tuple; +using boost::tie; using std::cerr; using std::clog; @@ -53,6 +54,5 @@ using std::runtime_error; using std::set; using std::shared_ptr; using std::string; -using std::tie; using std::unique_ptr; using std::vector; diff --git a/pdns/rec_channel.hh b/pdns/rec_channel.hh index 395c1a165c..2ffccdef87 100644 --- a/pdns/rec_channel.hh +++ b/pdns/rec_channel.hh @@ -91,7 +91,7 @@ std::vector* pleaseGetLargeAnswerRemotes(); std::vector* pleaseGetTimeouts(); DNSName getRegisteredName(const DNSName& dom); std::atomic* getDynMetric(const std::string& str, const std::string& prometheusName); -optional getStatByName(const std::string& name); +boost::optional getStatByName(const std::string& name); bool isStatBlacklisted(StatComponent component, const std::string& name); void blacklistStat(StatComponent component, const string& name); void blacklistStats(StatComponent component, const string& stats);