From 1b936f59264a4f4a867baece1e0ee4ec02f73cee Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 13 May 2017 17:52:14 +0200 Subject: Replace boost::function with std::function (C++11) --- src/bench/bench.cpp | 1 + src/bench/bench.h | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bench') diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index b0df3d2b04..33631d2d15 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -5,6 +5,7 @@ #include "bench.h" #include "perf.h" +#include #include #include #include diff --git a/src/bench/bench.h b/src/bench/bench.h index f12a41126c..1f36f2a4bc 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -5,10 +5,11 @@ #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H +#include +#include #include #include -#include #include #include @@ -59,7 +60,7 @@ namespace benchmark { bool KeepRunning(); }; - typedef boost::function BenchFunction; + typedef std::function BenchFunction; class BenchRunner { -- cgit v1.2.3