HomePhabricator

scripted-diff: Replace boost::bind with std::bind

Description

scripted-diff: Replace boost::bind with std::bind

Summary:
-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-

This is a remake of Core PR13743 : https://github.com/bitcoin/bitcoin/pull/13743/commits/cb53b825c26af6e628ba88d72b2000e75bedbbc6

Depends on D4132

Test Plan:

make check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D4133

Details

Provenance
deadalnixAuthored on Sep 22 2019, 10:52
deadalnixPushed on Sep 23 2019, 10:59
Reviewer
Restricted Project
Differential Revision
D4133: scripted-diff: Replace boost::bind with std::bind
Parents
rABC6615be98b28e: refactor: Use boost::scoped_connection in signal/slot, also prefer range-based…
Branches
Unknown
Tags
Unknown