diff options
| author | practicalswift <[email protected]> | 2017-05-13 17:52:14 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-05-13 17:59:09 +0200 |
| commit | 1b936f59264a4f4a867baece1e0ee4ec02f73cee (patch) | |
| tree | bee678b62d3ab3e0cda83144f0f2a8ddf25d777d /src/bench | |
| parent | Merge #10308: [wallet] Securely erase potentially sensitive keys/values (diff) | |
| download | discoin-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.cpp | 1 | ||||
| -rw-r--r-- | src/bench/bench.h | 5 |
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 { |