Skip to content

Commit c427e50

Browse files
GuillaumeLagrangeart049
authored andcommitted
example(google_benchmark): remove use of #pragma once
1 parent 70e4bc7 commit c427e50

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/google_benchmark/template_bench.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#pragma once
1+
#ifndef TEMPLATE_BENCH_HPP
2+
#define TEMPLATE_BENCH_HPP
23

34
#include <benchmark/benchmark.h>
45
#include <cstring>
@@ -13,7 +14,7 @@ template <class T> void BM_Template(benchmark::State &state) {
1314
}
1415
BENCHMARK_TEMPLATE(BM_Template, int);
1516
BENCHMARK_TEMPLATE(BM_Template, std::string);
16-
}
17+
} // namespace test
1718

1819
//
1920
//
@@ -51,3 +52,5 @@ BENCHMARK_TEMPLATE1_CAPTURE(BM_Template1_Capture, void, int_string_test, 42,
5152
std::string("abc"));
5253
BENCHMARK_TEMPLATE2_CAPTURE(BM_Template1_Capture, int, double, two_type_test,
5354
42, std::string("abc"));
55+
56+
#endif

0 commit comments

Comments
 (0)