]> granicus.if.org Git - pdns/commitdiff
there was a BOOST_REVERSE_FOREACH!
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Nov 2015 07:12:05 +0000 (08:12 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 27 Nov 2015 07:12:05 +0000 (08:12 +0100)
pdns/rec_channel_rec.cc

index 5689605f18cd353d247d8516d8465f78b55c30e0..8e0133516d80eb491c9b34a0d9cf03619fd27227 100644 (file)
@@ -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);
     }