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/bench.h | |
| 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/bench.h')
| -rw-r--r-- | src/bench/bench.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |