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~181^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2942%2Fhead;p=thirdparty%2Fpdns.git there was a BOOST_REVERSE_FOREACH! --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 5689605f18..8e0133516d 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -788,8 +788,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); }