Page MenuHomePhabricator

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

Authored by deadalnix on Sun, Sep 22, 11:34.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.