]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Remove workaround for Boost 1.53 since we require at least 1.54 to build.
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 25 Aug 2025 10:23:24 +0000 (12:23 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 25 Aug 2025 10:23:24 +0000 (12:23 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/bindbackend/bindbackend2.cc

index 724653554896d5271049ef4bcfb547627c38c9e8..1b65b2eace7bd17559814474834019f618abcc15 100644 (file)
@@ -1478,9 +1478,7 @@ BB2DomainInfo Bind2Backend::createDomainEntry(const ZoneName& domain, const stri
   { // Find a free zone id nr.
     auto state = s_state.read_lock();
     if (!state->empty()) {
-      // older (1.53) versions of boost have an expression for s_state.rbegin()
-      // that is ambiguous in C++17. So construct it explicitly
-      newid = boost::make_reverse_iterator(state->end())->d_id + 1;
+      newid = state->rbegin()->d_id + 1;
     }
   }