diff options
author | Francis Dupont <fdupont@isc.org> | 2020-07-31 00:04:26 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2020-08-13 15:54:14 +0200 |
commit | 2035f64c1c0d0908c71b47a0c321ed66784e391c (patch) | |
tree | b9f69a38a572cb7afe2763143fc5c877b218ebad /src/bin/d2/d2_controller.cc | |
parent | [#285] Corrected changelog numbering (diff) | |
download | kea-2035f64c1c0d0908c71b47a0c321ed66784e391c.tar.xz kea-2035f64c1c0d0908c71b47a0c321ed66784e391c.zip |
[#1308] Got rid of boost function/bind
Diffstat (limited to 'src/bin/d2/d2_controller.cc')
-rw-r--r-- | src/bin/d2/d2_controller.cc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/bin/d2/d2_controller.cc b/src/bin/d2/d2_controller.cc index 30bfbf39b2..c77fe0fa96 100644 --- a/src/bin/d2/d2_controller.cc +++ b/src/bin/d2/d2_controller.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2019 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2013-2020 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -15,6 +15,7 @@ using namespace isc::config; using namespace isc::process; +using namespace std::placeholders; namespace isc { namespace d2 { @@ -53,31 +54,31 @@ D2Controller::registerCommands() { // These are the commands always supported by the D2 server. // Please keep the list in alphabetic order. CommandMgr::instance().registerCommand(BUILD_REPORT_COMMAND, - boost::bind(&D2Controller::buildReportHandler, this, _1, _2)); + std::bind(&D2Controller::buildReportHandler, this, _1, _2)); CommandMgr::instance().registerCommand(CONFIG_GET_COMMAND, - boost::bind(&D2Controller::configGetHandler, this, _1, _2)); + std::bind(&D2Controller::configGetHandler, this, _1, _2)); CommandMgr::instance().registerCommand(CONFIG_RELOAD_COMMAND, - boost::bind(&D2Controller::configReloadHandler, this, _1, _2)); + std::bind(&D2Controller::configReloadHandler, this, _1, _2)); CommandMgr::instance().registerCommand(CONFIG_SET_COMMAND, - boost::bind(&D2Controller::configSetHandler, this, _1, _2)); + std::bind(&D2Controller::configSetHandler, this, _1, _2)); CommandMgr::instance().registerCommand(CONFIG_TEST_COMMAND, - boost::bind(&D2Controller::configTestHandler, this, _1, _2)); + std::bind(&D2Controller::configTestHandler, this, _1, _2)); CommandMgr::instance().registerCommand(CONFIG_WRITE_COMMAND, - boost::bind(&D2Controller::configWriteHandler, this, _1, _2)); + std::bind(&D2Controller::configWriteHandler, this, _1, _2)); CommandMgr::instance().registerCommand(SHUT_DOWN_COMMAND, - boost::bind(&D2Controller::shutdownHandler, this, _1, _2)); + std::bind(&D2Controller::shutdownHandler, this, _1, _2)); CommandMgr::instance().registerCommand(STATUS_GET_COMMAND, - boost::bind(&DControllerBase::statusGetHandler, this, _1, _2)); + std::bind(&DControllerBase::statusGetHandler, this, _1, _2)); CommandMgr::instance().registerCommand(VERSION_GET_COMMAND, - boost::bind(&D2Controller::versionGetHandler, this, _1, _2)); + std::bind(&D2Controller::versionGetHandler, this, _1, _2)); } void |