diff --git a/include/benchmark/benchmark_api.h b/include/benchmark/benchmark_api.h index 49167ffb..0cb43488 100644 --- a/include/benchmark/benchmark_api.h +++ b/include/benchmark/benchmark_api.h @@ -152,7 +152,6 @@ BENCHMARK(BM_test)->Unit(benchmark::kMillisecond); #include #include #include -#include #include "macros.h" diff --git a/src/complexity.cc b/src/complexity.cc index 0d6f90bc..1b444cea 100644 --- a/src/complexity.cc +++ b/src/complexity.cc @@ -22,7 +22,6 @@ #include "stat.h" #include #include -#include namespace benchmark { diff --git a/test/complexity_test.cc b/test/complexity_test.cc index ed434fe1..03bd2dcc 100644 --- a/test/complexity_test.cc +++ b/test/complexity_test.cc @@ -153,9 +153,9 @@ void BM_Complexity_O1(benchmark::State& state) { } state.SetComplexityN(state.range_x()); } -BENCHMARK(BM_Complexity_O1)->Range(1, 1<<18)->Complexity(benchmark::o1); -BENCHMARK(BM_Complexity_O1)->Range(1, 1<<18)->Complexity([](size_t){return 1.0; }); -BENCHMARK(BM_Complexity_O1)->Range(1, 1<<18)->Complexity(); +BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity(benchmark::o1); +BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity([](size_t){return 1.0; }); +BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity(); std::string big_o_1_test_name = "BM_Complexity_O1_BigO"; std::string rms_o_1_test_name = "BM_Complexity_O1_RMS";