aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2017-05-13 17:52:14 +0200
committerpracticalswift <[email protected]>2017-05-13 17:59:09 +0200
commit1b936f59264a4f4a867baece1e0ee4ec02f73cee (patch)
treebee678b62d3ab3e0cda83144f0f2a8ddf25d777d /src/bench
parentMerge #10308: [wallet] Securely erase potentially sensitive keys/values (diff)
downloaddiscoin-1b936f59264a4f4a867baece1e0ee4ec02f73cee.tar.xz
discoin-1b936f59264a4f4a867baece1e0ee4ec02f73cee.zip
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 b0df3d2b0..33631d2d1 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 f12a41126..1f36f2a4b 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
{