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

Zcash: Only applied changes to src/bench/
This commit is contained in:
practicalswift 2017-05-13 17:52:14 +02:00 committed by Jack Grigg
parent f84f56610e
commit 0c89713553
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#include "bench.h"
#include "perf.h"
#include <assert.h>
#include <iostream>
#include <iomanip>
#include <sys/time.h>

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
{