#include "base/process.hpp"
#include "config.h"
#include <boost/program_options.hpp>
-#include <boost/tuple/tuple.hpp>
#include <thread>
#ifndef _WIN32
using boost::dynamic_pointer_cast;
using boost::static_pointer_cast;
-#include <boost/tuple/tuple.hpp>
-using boost::tie;
-
namespace icinga
{
return false;
}
-boost::tuple<Host::Ptr, Service::Ptr> icinga::GetHostService(const Checkable::Ptr& checkable)
+std::pair<Host::Ptr, Service::Ptr> icinga::GetHostService(const Checkable::Ptr& checkable)
{
Service::Ptr service = dynamic_pointer_cast<Service>(checkable);
if (service)
- return boost::make_tuple(service->GetHost(), service);
+ return std::make_pair(service->GetHost(), service);
else
- return boost::make_tuple(static_pointer_cast<Host>(checkable), Service::Ptr());
+ return std::make_pair(static_pointer_cast<Host>(checkable), Service::Ptr());
}
#include "icinga/service.thpp"
#include "icinga/macroresolver.hpp"
#include "icinga/host.hpp"
+#include <utility>
+#include <tuple>
+
+using std::tie;
namespace icinga
{
static bool EvaluateApplyRule(const Host::Ptr& host, const ApplyRule& rule);
};
-I2_ICINGA_API boost::tuple<Host::Ptr, Service::Ptr> GetHostService(const Checkable::Ptr& checkable);
+I2_ICINGA_API std::pair<Host::Ptr, Service::Ptr> GetHostService(const Checkable::Ptr& checkable);
}
Host::Ptr host;
Service::Ptr service;
- boost::tie(host, service) = GetHostService(checkable);
+ tie(host, service) = GetHostService(checkable);
Dictionary::Ptr fields = new Dictionary();
Host::Ptr host;
Service::Ptr service;
- boost::tie(host, service) = GetHostService(checkable);
+ tie(host, service) = GetHostService(checkable);
MacroProcessor::ResolverList resolvers;
if (service)
Host::Ptr host;
Service::Ptr service;
- boost::tie(host, service) = GetHostService(checkable);
+ tie(host, service) = GetHostService(checkable);
MacroProcessor::ResolverList resolvers;
if (service)
if (GetEnableSendMetadata()) {
Host::Ptr host;
Service::Ptr service;
- boost::tie(host, service) = GetHostService(checkable);
+ tie(host, service) = GetHostService(checkable);
Dictionary::Ptr fields = new Dictionary();
#include "base/objectlock.hpp"
#include "base/json.hpp"
#include <BoostTestTargetConfig.h>
-#include <boost/tuple/tuple.hpp>
using namespace icinga;
#include "base/objectlock.hpp"
#include "base/json.hpp"
#include <BoostTestTargetConfig.h>
-#include <boost/tuple/tuple.hpp>
using namespace icinga;
#include "base/array.hpp"
#include "base/dictionary.hpp"
#include <BoostTestTargetConfig.h>
-#include <boost/tuple/tuple.hpp>
using namespace icinga;
#include "base/application.hpp"
#include "base/type.hpp"
#include <BoostTestTargetConfig.h>
-#include <boost/tuple/tuple.hpp>
using namespace icinga;