Browse Source

[trac5021] Merge branch 'trac5021' of ssh://git.kea.isc.org/git/kea into trac5021

Tomek Mrugalski 8 years ago
parent
commit
4eb189a4d0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/bin/dhcp4/json_config_parser.cc
  2. 1 1
      src/bin/dhcp6/json_config_parser.cc

+ 1 - 1
src/bin/dhcp4/json_config_parser.cc

@@ -566,7 +566,7 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set) {
         // This is a way to convert ConstElementPtr to ElementPtr.
         // We need a config that can be edited, because we will insert
         // default values and will insert derived values as well.
-        ElementPtr mutable_cfg = const_pointer_cast<Element>(config_set);
+        ElementPtr mutable_cfg = boost::const_pointer_cast<Element>(config_set);
 
         // Set all default values if not specified by the user.
         SimpleParser4::setAllDefaults(mutable_cfg);

+ 1 - 1
src/bin/dhcp6/json_config_parser.cc

@@ -840,7 +840,7 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) {
         // This is a way to convert ConstElementPtr to ElementPtr.
         // We need a config that can be edited, because we will insert
         // default values and will insert derived values as well.
-        ElementPtr mutable_cfg = const_pointer_cast<Element>(config_set);
+        ElementPtr mutable_cfg = boost::const_pointer_cast<Element>(config_set);
 
         SimpleParser6::setAllDefaults(mutable_cfg);