///
/// @param host Pointer to the existing @c Host object being removed.
/// @return true when found and removed.
- virtual bool remove(const HostPtr& host) = 0;
+ virtual bool remove(const ConstHostPtr& host) = 0;
/// @brief Flush entries.
///
}
/// Remove
- bool remove(const HostPtr& host) {
+ bool remove(const ConstHostPtr& host) {
for (auto h = store_.begin(); h != store_.end(); ++h) {
if (*h == host) {
store_.erase(h);
}
/// Remove throws
- bool remove(const HostPtr& host) {
+ bool remove(const ConstHostPtr& host) {
isc_throw(NotImplemented,
"remove is not implemented: " << host->toText());
}