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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ffd7cba4cfd8bf4b9bd72a41b00fc50d9f77158;p=pdns there was a BOOST_REVERSE_FOREACH! --- diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index 5689605f1..8e0133516 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); }