summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2024-01-12 15:31:50 +0100
committerRazvan Becheriu <razvan@isc.org>2024-01-22 16:49:59 +0100
commit1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4 (patch)
treefc89d85f5dd097dd85a2921ce1382980e012a423 /src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
parent[#3119] replace const auto with auto const (diff)
downloadkea-1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4.tar.xz
kea-1b4d7b0293bca6657d1f798e6e4e65ce95d2dca4.zip
[#3119] use range based for loop or BOOST_FOREACH
Diffstat (limited to 'src/lib/dhcpsrv/parsers/ifaces_config_parser.cc')
-rw-r--r--src/lib/dhcpsrv/parsers/ifaces_config_parser.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/dhcpsrv/parsers/ifaces_config_parser.cc b/src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
index c375b403c2..fee4484a65 100644
--- a/src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
+++ b/src/lib/dhcpsrv/parsers/ifaces_config_parser.cc
@@ -9,7 +9,6 @@
#include <dhcpsrv/cfgmgr.h>
#include <dhcpsrv/dhcpsrv_log.h>
#include <dhcpsrv/parsers/ifaces_config_parser.h>
-#include <boost/foreach.hpp>
#include <string>
#include <sys/types.h>
@@ -21,7 +20,7 @@ namespace dhcp {
void
IfacesConfigParser::parseInterfacesList(const CfgIfacePtr& cfg_iface,
ConstElementPtr ifaces_list) {
- BOOST_FOREACH(ConstElementPtr iface, ifaces_list->listValue()) {
+ for (auto const& iface : ifaces_list->listValue()) {
std::string iface_name = iface->stringValue();
try {
cfg_iface->use(protocol_, iface_name);
@@ -50,7 +49,7 @@ IfacesConfigParser::parse(const CfgIfacePtr& cfg,
}
bool socket_type_specified = false;
- BOOST_FOREACH(ConfigPair element, ifaces_config->mapValue()) {
+ for (auto const& element : ifaces_config->mapValue()) {
try {
if (element.first == "re-detect") {
continue;