From: bert hubert Date: Fri, 27 Nov 2015 07:12:05 +0000 (+0100) Subject: there was a BOOST_REVERSE_FOREACH! X-Git-Tag: dnsdist-1.0.0-alpha1~176^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c05acf88cb2ea06b2a9690d669386b6b6ca3209;p=pdns there was a BOOST_REVERSE_FOREACH! --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 904341e64..845edcbbe 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -784,8 +784,8 @@ DNSName getRegisteredName(const DNSName& dom) if(!ret.empty()) ret+="."; - BOOST_REVERSE_FOREACH(const std::string& p, parts) { - ret+=p+"."; + for(auto p = parts.crbegin(); p != parts.crend(); ++p) { + ret+=(*p)+"."; } return DNSName(ret); }