diff options
| author | Chun Kuan Lee <[email protected]> | 2018-10-17 23:51:17 +0800 |
|---|---|---|
| committer | Chun Kuan Lee <[email protected]> | 2018-10-20 02:29:59 +0800 |
| commit | cb53b825c26af6e628ba88d72b2000e75bedbbc6 (patch) | |
| tree | 697ef867c14085856bdf1568aa4132c7164e43a7 /src/validation.cpp | |
| parent | refactor: Use boost::scoped_connection in signal/slot, also prefer range-base... (diff) | |
| download | discoin-cb53b825c26af6e628ba88d72b2000e75bedbbc6.tar.xz discoin-cb53b825c26af6e628ba88d72b2000e75bedbbc6.zip | |
scripted-diff: Replace boost::bind with std::bind
-BEGIN VERIFY SCRIPT-
for j in $(seq 1 5)
do
sed -i "s/ _${j}/ std::placeholders::_${j}/g" $(git grep --name-only " _${j}" -- '*.cpp' '*.h')
done
sed -i "s/boost::bind/std::bind/g" $(git grep --name-only boost::bind -- '*.cpp' '*.h')
sed -i "s/boost::ref/std::ref/g" $(git grep --name-only boost::ref -- '*.cpp' '*.h')
sed -i '/boost\/bind/d' $(git grep --name-only boost/bind)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index db7b249ff..317e7d44e 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2372,7 +2372,7 @@ private: public: explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) { - m_connNotifyEntryRemoved = pool.NotifyEntryRemoved.connect(boost::bind(&ConnectTrace::NotifyEntryRemoved, this, _1, _2)); + m_connNotifyEntryRemoved = pool.NotifyEntryRemoved.connect(std::bind(&ConnectTrace::NotifyEntryRemoved, this, std::placeholders::_1, std::placeholders::_2)); } void BlockConnected(CBlockIndex* pindex, std::shared_ptr<const CBlock> pblock) { |