We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df26de3 commit a347eaaCopy full SHA for a347eaa
1 file changed
examples/google_benchmark_cmake/main.cpp
@@ -1,11 +1,14 @@
1
-#include "fixture_bench.hpp"
2
-#include "template_bench.hpp"
3
#include <benchmark/benchmark.h>
+
4
#include <cstring>
5
+#include "fixture_bench.hpp"
6
+#include "template_bench.hpp"
7
8
template <class... Args>
9
void BM_Capture(benchmark::State &state, Args &&...args) {
10
auto args_tuple = std::make_tuple(std::move(args)...);
11
+ (void)args_tuple;
12
for (auto _ : state) {
13
}
14
@@ -36,8 +39,7 @@ static void BM_memcpy(benchmark::State &state) {
36
39
char *src = new char[state.range(0)];
37
40
char *dst = new char[state.range(0)];
38
41
memset(src, 'x', state.range(0));
- for (auto _ : state)
- memcpy(dst, src, state.range(0));
42
+ for (auto _ : state) memcpy(dst, src, state.range(0));
43
delete[] src;
44
delete[] dst;
45
0 commit comments