From: Slawek Figiel Date: Thu, 25 May 2023 19:07:32 +0000 (+0200) Subject: [#2815] Fix boost::distance call X-Git-Tag: Kea-2.3.8~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ec0de720ac8d7824820c1b6a10d44dd5696f33;p=thirdparty%2Fkea.git [#2815] Fix boost::distance call --- diff --git a/src/lib/dhcpsrv/cfg_hosts.cc b/src/lib/dhcpsrv/cfg_hosts.cc index a8c52eff74..20aa6a595e 100644 --- a/src/lib/dhcpsrv/cfg_hosts.cc +++ b/src/lib/dhcpsrv/cfg_hosts.cc @@ -1103,7 +1103,7 @@ CfgHosts::del(const SubnetID& subnet_id, const asiolink::IOAddress& addr) { // Delete IPv6 reservations. const auto& range = idx6.equal_range(boost::make_tuple(subnet_id, addr)); idx6.erase(range.first, range.second); - erased_addresses = boost::distance(range.first, range.second); + erased_addresses = boost::distance(range); // Delete hosts. for (auto key = range.first; key != range.second; ++key) {