Replace boost::function with std::function (C++11)

This commit is contained in:
practicalswift
2017-05-13 17:52:14 +02:00
parent 94e52273f3
commit 1b936f5926
11 changed files with 26 additions and 30 deletions

View File

@@ -169,7 +169,7 @@ bool CBlockTreeDB::ReadFlag(const std::string &name, bool &fValue) {
return true;
}
bool CBlockTreeDB::LoadBlockIndexGuts(boost::function<CBlockIndex*(const uint256&)> insertBlockIndex)
bool CBlockTreeDB::LoadBlockIndexGuts(std::function<CBlockIndex*(const uint256&)> insertBlockIndex)
{
std::unique_ptr<CDBIterator> pcursor(NewIterator());