Commit b91a7215 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5021] Added boost:: for const_pointer_cast

parent d67502ad
...@@ -566,7 +566,7 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set) { ...@@ -566,7 +566,7 @@ configureDhcp4Server(Dhcpv4Srv&, isc::data::ConstElementPtr config_set) {
// This is a way to convert ConstElementPtr to ElementPtr. // This is a way to convert ConstElementPtr to ElementPtr.
// We need a config that can be edited, because we will insert // We need a config that can be edited, because we will insert
// default values and will insert derived values as well. // 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. // Set all default values if not specified by the user.
SimpleParser4::setAllDefaults(mutable_cfg); SimpleParser4::setAllDefaults(mutable_cfg);
......
...@@ -840,7 +840,7 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) { ...@@ -840,7 +840,7 @@ configureDhcp6Server(Dhcpv6Srv&, isc::data::ConstElementPtr config_set) {
// This is a way to convert ConstElementPtr to ElementPtr. // This is a way to convert ConstElementPtr to ElementPtr.
// We need a config that can be edited, because we will insert // We need a config that can be edited, because we will insert
// default values and will insert derived values as well. // 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); SimpleParser6::setAllDefaults(mutable_cfg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment