Skip to content

Commit e99db77

Browse files
committed
Drop boost/preprocessor dependencies
1 parent 12f5028 commit e99db77

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/bench/bench.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
#ifndef BITCOIN_BENCH_BENCH_H
66
#define BITCOIN_BENCH_BENCH_H
77

8+
#include <util/macros.h>
9+
810
#include <chrono>
911
#include <functional>
1012
#include <map>
1113
#include <string>
1214
#include <vector>
1315

1416
#include <bench/nanobench.h>
15-
#include <boost/preprocessor/cat.hpp>
16-
#include <boost/preprocessor/stringize.hpp>
1717

1818
/*
1919
* Usage:
@@ -56,8 +56,8 @@ class BenchRunner
5656
static void RunAll(const Args& args);
5757
};
5858
}
59-
// BENCHMARK(foo) expands to: benchmark::BenchRunner bench_11foo("foo");
59+
// BENCHMARK(foo) expands to: benchmark::BenchRunner bench_11foo("foo", foo);
6060
#define BENCHMARK(n) \
61-
benchmark::BenchRunner BOOST_PP_CAT(bench_, BOOST_PP_CAT(__LINE__, n))(BOOST_PP_STRINGIZE(n), n);
61+
benchmark::BenchRunner PASTE2(bench_, PASTE2(__LINE__, n))(STRINGIZE(n), n);
6262

6363
#endif // BITCOIN_BENCH_BENCH_H

test/lint/lint-includes.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ EXPECTED_BOOST_INCLUDES=(
6060
boost/multi_index/ordered_index.hpp
6161
boost/multi_index/sequenced_index.hpp
6262
boost/multi_index_container.hpp
63-
boost/preprocessor/cat.hpp
64-
boost/preprocessor/stringize.hpp
6563
boost/process.hpp
6664
boost/signals2/connection.hpp
6765
boost/signals2/optional_last_value.hpp

0 commit comments

Comments
 (0)