From: Francis Dupont Date: Wed, 28 Dec 2016 23:18:24 +0000 (+0100) Subject: [5021] Added boost:: for const_pointer_cast X-Git-Tag: trac5100_base^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b91a7215aef856b8a208003adf19d50fccf41308;p=thirdparty%2Fkea.git [5021] Added boost:: for const_pointer_cast --- diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc index 3344a4b895..427ecf4fc6 100644 --- a/src/bin/dhcp4/json_config_parser.cc +++ b/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(config_set); + ElementPtr mutable_cfg = boost::const_pointer_cast(config_set); // Set all default values if not specified by the user. SimpleParser4::setAllDefaults(mutable_cfg); diff --git a/src/bin/dhcp6/json_config_parser.cc b/src/bin/dhcp6/json_config_parser.cc index cd1350deae..84b410791d 100644 --- a/src/bin/dhcp6/json_config_parser.cc +++ b/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(config_set); + ElementPtr mutable_cfg = boost::const_pointer_cast(config_set); SimpleParser6::setAllDefaults(mutable_cfg);