aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-05-13 17:52:14 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-05-13 17:59:09 +0200
commit1b936f59264a4f4a867baece1e0ee4ec02f73cee (patch)
treebee678b62d3ab3e0cda83144f0f2a8ddf25d777d /src/bench
parent94e52273f30fc9f3f1a7b58778ed21781bb2a744 (diff)
Replace boost::function with std::function (C++11)
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/bench.cpp1
-rw-r--r--src/bench/bench.h5
2 files changed, 4 insertions, 2 deletions
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 <assert.h>
#include <iostream>
#include <iomanip>
#include <sys/time.h>
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 <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
{