File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,20 @@ void GenerateTemplateResults(const std::vector<ankerl::nanobench::Result>& bench
41
41
42
42
} // namespace
43
43
44
- benchmark::BenchRunner::BenchmarkMap& benchmark::BenchRunner::benchmarks ()
44
+ namespace benchmark {
45
+
46
+ BenchRunner::BenchmarkMap& BenchRunner::benchmarks ()
45
47
{
46
48
static std::map<std::string, BenchFunction> benchmarks_map;
47
49
return benchmarks_map;
48
50
}
49
51
50
- benchmark:: BenchRunner::BenchRunner (std::string name, benchmark:: BenchFunction func)
52
+ BenchRunner::BenchRunner (std::string name, BenchFunction func)
51
53
{
52
54
benchmarks ().insert (std::make_pair (name, func));
53
55
}
54
56
55
- void benchmark:: BenchRunner::RunAll (const Args& args)
57
+ void BenchRunner::RunAll (const Args& args)
56
58
{
57
59
std::regex reFilter (args.regex_filter );
58
60
std::smatch baseMatch;
@@ -103,3 +105,5 @@ void benchmark::BenchRunner::RunAll(const Args& args)
103
105
" {{/result}}" );
104
106
GenerateTemplateResults (benchmarkResults, args.output_json , ankerl::nanobench::templates::json ());
105
107
}
108
+
109
+ } // namespace benchmark
You can’t perform that action at this time.
0 commit comments