[refactor] Replace boost::function with std::function (#5700)

Replace boost::function with std::function
This commit is contained in:
Zhengguo Yang
2021-05-09 22:00:48 +08:00
committed by GitHub
parent 11cce06962
commit 98e80aa65e
44 changed files with 182 additions and 174 deletions

View File

@ -17,7 +17,6 @@
#include "runtime/bufferpool/buffer_allocator.h"
#include <boost/bind/bind.hpp>
#include <mutex>
#include "common/atomic.h"
@ -721,7 +720,8 @@ std::string BufferPool::FreeBufferArena::DebugString() {
<< " free buffers: " << lists.num_free_buffers.load()
<< " low water mark: " << lists.low_water_mark
<< " clean pages: " << lists.num_clean_pages.load() << " ";
lists.clean_pages.iterate(boost::bind<bool>(Page::DebugStringCallback, &ss, boost::placeholders::_1));
lists.clean_pages.iterate(
std::bind<bool>(Page::DebugStringCallback, &ss, std::placeholders::_1));
ss << "\n";
}
return ss.str();