mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-28 23:08:52 +01:00
Replace boost::function with std::function (C++11)
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
#ifndef BITCOIN_BENCH_BENCH_H
|
||||
#define BITCOIN_BENCH_BENCH_H
|
||||
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/preprocessor/cat.hpp>
|
||||
#include <boost/preprocessor/stringize.hpp>
|
||||
|
||||
@@ -59,7 +60,7 @@ namespace benchmark {
|
||||
bool KeepRunning();
|
||||
};
|
||||
|
||||
typedef boost::function<void(State&)> BenchFunction;
|
||||
typedef std::function<void(State&)> BenchFunction;
|
||||
|
||||
class BenchRunner
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user