Value hostgroup;
BOOST_FOREACH(tie(tuples::ignore, hostgroup), dict) {
if (!HostGroup::Exists(hostgroup))
- Logger::Write(LogWarning, "icinga", "Host group '" + hostgroup + "' used but not defined.");
+ Logger::Write(LogWarning, "icinga", "Host group '" + static_cast<String>(hostgroup) + "' used but not defined.");
m_MembersCache[hostgroup].push_back(host->GetName());
}
Value servicegroup;
BOOST_FOREACH(tie(tuples::ignore, servicegroup), dict) {
if (!ServiceGroup::Exists(servicegroup))
- Logger::Write(LogWarning, "icinga", "Service group '" + servicegroup + "' used but not defined.");
+ Logger::Write(LogWarning, "icinga", "Service group '" + static_cast<String>(servicegroup) + "' used but not defined.");
m_MembersCache[servicegroup].push_back(service->GetName());
}