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

@@ -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
{