diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-13 21:18:39 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-09-14 09:16:59 +0000 |
commit | ebaf0ea31790d1e7251f49ccb889b8e379e6024c (patch) | |
tree | 2caa4c88a92a58202ddf3525afc0ea7131b18dc0 | |
parent | 5d1b76fef0112feaacae32445c8156df97a0d2a7 (diff) |
boost::bind -> std::bind
-rw-r--r-- | filedistribution/src/vespa/filedistribution/model/zkfiledbmodel.cpp | 4 | ||||
-rw-r--r-- | filedistribution/src/vespa/filedistribution/rpc/filedistributorrpc.cpp | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/filedistribution/src/vespa/filedistribution/model/zkfiledbmodel.cpp b/filedistribution/src/vespa/filedistribution/model/zkfiledbmodel.cpp index ebb58a3829b..17fdba96862 100644 --- a/filedistribution/src/vespa/filedistribution/model/zkfiledbmodel.cpp +++ b/filedistribution/src/vespa/filedistribution/model/zkfiledbmodel.cpp @@ -4,15 +4,13 @@ #include <ostream> #include <algorithm> -#include <boost/lambda/lambda.hpp> -#include <boost/lambda/bind.hpp> -#include <boost/foreach.hpp> #include "zkfacade.h" #include "zkfiledbmodel.h" #include "deployedfilestodownload.h" #include <vespa/filedistribution/common/logfwd.h> #include <sys/file.h> +#include <boost/foreach.hpp> namespace fs = boost::filesystem; diff --git a/filedistribution/src/vespa/filedistribution/rpc/filedistributorrpc.cpp b/filedistribution/src/vespa/filedistribution/rpc/filedistributorrpc.cpp index e5941355c44..ed31aebbaf9 100644 --- a/filedistribution/src/vespa/filedistribution/rpc/filedistributorrpc.cpp +++ b/filedistribution/src/vespa/filedistribution/rpc/filedistributorrpc.cpp @@ -3,7 +3,6 @@ #include "filedistributorrpc.h" #include <boost/optional.hpp> -#include <boost/lambda/bind.hpp> #include <boost/foreach.hpp> #include <boost/exception/diagnostic_information.hpp> @@ -20,7 +19,7 @@ LOG_SETUP(".filedistributorrpc"); using filedistribution::FileDistributorRPC; using filedistribution::FileProvider; -namespace ll = boost::lambda; +namespace ph = std::placeholders; namespace { typedef std::lock_guard<std::mutex> LockGuard; @@ -188,12 +187,12 @@ void FileDistributorRPC::Server::start(const FileDistributorRPC::SP & parent) { _downloadCompletedConnection = _fileProvider->downloadCompleted().connect(FileProvider::DownloadCompletedSignal::slot_type( - ll::bind(&QueuedRequests::downloadFinished, &_queuedRequests, ll::_1, ll::_2)). + std::bind(&QueuedRequests::downloadFinished, &_queuedRequests, ph::_1, ph::_2)). track(parent)); _downloadFailedConnection = _fileProvider->downloadFailed().connect(FileProvider::DownloadFailedSignal::slot_type( - ll::bind(&QueuedRequests::downloadFailed, &_queuedRequests, ll::_1, ll::_2)). + std::bind(&QueuedRequests::downloadFailed, &_queuedRequests, ph::_1, ph::_2)). track(parent)); |