Skip to content

Commit f8efbda

Browse files
committed
Fix compilation error on macos26
1 parent 8f6c205 commit f8efbda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

root/roofit/roofit/BenchmarkUtils.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ template <typename F>
1515
void doBenchmarks(const char *name, int backend, F func, std::vector<long int> const &range, int numIterations = 1,
1616
benchmark::TimeUnit unit = benchmark::kMillisecond)
1717
{
18-
benchmark::RegisterBenchmark(name, func)->ArgsProduct({{backend}, range})->Unit(unit)->Iterations(numIterations);
18+
std::vector<std::vector<int64_t>> arglists;
19+
arglists.emplace_back(std::vector<int64_t>{backend});
20+
arglists.emplace_back();
21+
for (auto val : range) {
22+
arglists.back().emplace_back(val);
23+
}
24+
benchmark::RegisterBenchmark(name, func)->ArgsProduct(arglists)->Unit(unit)->Iterations(numIterations);
1925
}
2026

2127
void randomizeParameters(const RooArgSet &parameters)

0 commit comments

Comments
 (0)